2012-10-24 22:22:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorApplicationCalendar extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
|
|
|
return pht('Dates and Stuff');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getFlavorText() {
|
|
|
|
return pht('Never miss an episode ever again.');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/calendar/';
|
|
|
|
}
|
|
|
|
|
2013-01-16 01:12:36 +01:00
|
|
|
public function getIconName() {
|
|
|
|
return 'calendar';
|
|
|
|
}
|
|
|
|
|
2012-10-24 22:22:24 +02:00
|
|
|
public function getTitleGlyph() {
|
|
|
|
// Unicode has a calendar character but it's in some distant code plane,
|
|
|
|
// use "keyboard" since it looks vaguely similar.
|
|
|
|
return "\xE2\x8C\xA8";
|
|
|
|
}
|
|
|
|
|
2013-01-16 00:41:22 +01:00
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_COMMUNICATION;
|
|
|
|
}
|
|
|
|
|
2013-01-19 19:12:44 +01:00
|
|
|
public function isBeta() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-10-24 22:22:24 +02:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/calendar/' => array(
|
|
|
|
'' => 'PhabricatorCalendarBrowseController',
|
|
|
|
'status/' => array(
|
|
|
|
'' => 'PhabricatorCalendarViewStatusController',
|
|
|
|
'create/' =>
|
|
|
|
'PhabricatorCalendarEditStatusController',
|
|
|
|
'delete/(?P<id>[1-9]\d*)/' =>
|
|
|
|
'PhabricatorCalendarDeleteStatusController',
|
|
|
|
'edit/(?P<id>[1-9]\d*)/' =>
|
|
|
|
'PhabricatorCalendarEditStatusController',
|
|
|
|
'view/(?P<phid>[^/]+)/' =>
|
|
|
|
'PhabricatorCalendarViewStatusController',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|