2013-01-25 02:23:05 +01:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 02:03:09 +02:00
|
|
|
final class PhabricatorConpherenceApplication extends PhabricatorApplication {
|
2013-01-25 02:23:05 +01:00
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/conpherence/';
|
|
|
|
}
|
|
|
|
|
2014-07-23 15:52:50 +02:00
|
|
|
public function getName() {
|
|
|
|
return pht('Conpherence');
|
|
|
|
}
|
|
|
|
|
2013-01-25 02:23:05 +01:00
|
|
|
public function getShortDescription() {
|
2014-05-29 21:17:54 +02:00
|
|
|
return pht('Send Messages');
|
2013-01-25 02:23:05 +01:00
|
|
|
}
|
|
|
|
|
2015-01-25 08:41:43 +01:00
|
|
|
public function getFontIcon() {
|
|
|
|
return 'fa-comments';
|
|
|
|
}
|
|
|
|
|
2013-01-25 02:23:05 +01:00
|
|
|
public function getTitleGlyph() {
|
2013-11-07 02:00:09 +01:00
|
|
|
return "\xE2\x9C\x86";
|
2013-01-25 02:23:05 +01:00
|
|
|
}
|
|
|
|
|
2013-02-05 22:46:02 +01:00
|
|
|
public function getEventListeners() {
|
|
|
|
return array(
|
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())
|
2014-01-30 00:41:30 +01:00
|
|
|
->setName(pht('Conpherence Thread'))
|
2014-05-12 22:34:00 +02:00
|
|
|
->setIcon('fa-comments')
|
2014-01-29 05:18:01 +01:00
|
|
|
->setWorkflow(true)
|
|
|
|
->setHref($this->getBaseURI().'new/');
|
|
|
|
$items[] = $item;
|
|
|
|
|
|
|
|
return $items;
|
|
|
|
}
|
|
|
|
|
2013-01-25 02:23:05 +01:00
|
|
|
}
|