2013-01-25 02:23:05 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @group conpherence
|
|
|
|
*/
|
|
|
|
final class PhabricatorApplicationConpherence extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/conpherence/';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getQuickCreateURI() {
|
|
|
|
return $this->getBaseURI().'new/';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
|
|
|
return pht('Messaging');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIconName() {
|
|
|
|
return 'conpherence';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTitleGlyph() {
|
2013-11-07 02:00:09 +01:00
|
|
|
return "\xE2\x9C\x86";
|
2013-01-25 02:23:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_COMMUNICATION;
|
|
|
|
}
|
|
|
|
|
2013-02-05 22:46:02 +01:00
|
|
|
public function getEventListeners() {
|
|
|
|
return array(
|
2013-10-22 02:00:21 +02:00
|
|
|
new ConpherenceActionMenuEventListener(),
|
2013-04-06 02:01:54 +02:00
|
|
|
new ConpherenceHovercardEventListener(),
|
2013-02-05 22:46:02 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2013-01-25 02:23:05 +01:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/conpherence/' => array(
|
|
|
|
'' => 'ConpherenceListController',
|
2013-04-01 03:28:15 +02:00
|
|
|
'thread/(?P<id>[1-9]\d*)/' => 'ConpherenceListController',
|
|
|
|
'(?P<id>[1-9]\d*)/' => 'ConpherenceViewController',
|
2013-01-25 02:23:05 +01:00
|
|
|
'new/' => 'ConpherenceNewController',
|
2013-08-08 22:43:33 +02:00
|
|
|
'panel/' => 'ConpherenceNotificationPanelController',
|
2013-02-15 23:01:27 +01:00
|
|
|
'widget/(?P<id>[1-9]\d*)/' => 'ConpherenceWidgetController',
|
2013-01-25 02:23:05 +01:00
|
|
|
'update/(?P<id>[1-9]\d*)/' => 'ConpherenceUpdateController',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2014-01-29 05:18:01 +01:00
|
|
|
public function getQuickCreateItems(PhabricatorUser $viewer) {
|
|
|
|
$items = array();
|
|
|
|
|
|
|
|
$item = id(new PHUIListItemView())
|
|
|
|
->setName(pht('New Conpherence Thread'))
|
|
|
|
->setIcon('new')
|
|
|
|
->setWorkflow(true)
|
|
|
|
->setHref($this->getBaseURI().'new/');
|
|
|
|
$items[] = $item;
|
|
|
|
|
|
|
|
return $items;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-01-25 02:23:05 +01:00
|
|
|
}
|