3 final class PhabricatorCountdownApplication
extends PhabricatorApplication
{
5 public function getBaseURI() {
9 public function getIcon() {
13 public function getName() {
14 return pht('Countdown');
17 public function getShortDescription() {
18 return pht('Countdown to Events');
21 public function getTitleGlyph() {
22 return "\xE2\x9A\xB2";
25 public function getFlavorText() {
26 return pht('Utilize the full capabilities of your ALU.');
29 public function getApplicationGroup() {
30 return self
::GROUP_UTILITIES
;
33 public function getRemarkupRules() {
35 new PhabricatorCountdownRemarkupRule(),
39 public function getRoutes() {
41 '/C(?P<id>[1-9]\d*)' => 'PhabricatorCountdownViewController',
42 '/countdown/' => array(
43 '(?:query/(?P<queryKey>[^/]+)/)?'
44 => 'PhabricatorCountdownListController',
45 $this->getEditRoutePattern('edit/')
46 => 'PhabricatorCountdownEditController',
51 protected function getCustomCapabilities() {
53 PhabricatorCountdownDefaultViewCapability
::CAPABILITY
=> array(
54 'caption' => pht('Default view policy for new countdowns.'),
55 'template' => PhabricatorCountdownCountdownPHIDType
::TYPECONST
,
56 'capability' => PhabricatorPolicyCapability
::CAN_VIEW
,
58 PhabricatorCountdownDefaultEditCapability
::CAPABILITY
=> array(
59 'caption' => pht('Default edit policy for new countdowns.'),
60 'template' => PhabricatorCountdownCountdownPHIDType
::TYPECONST
,
61 'capability' => PhabricatorPolicyCapability
::CAN_EDIT
,