Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/countdown/application/PhabricatorCountdownApplication.php
12256 views
1
<?php
2
3
final class PhabricatorCountdownApplication extends PhabricatorApplication {
4
5
public function getBaseURI() {
6
return '/countdown/';
7
}
8
9
public function getIcon() {
10
return 'fa-rocket';
11
}
12
13
public function getName() {
14
return pht('Countdown');
15
}
16
17
public function getShortDescription() {
18
return pht('Countdown to Events');
19
}
20
21
public function getTitleGlyph() {
22
return "\xE2\x9A\xB2";
23
}
24
25
public function getFlavorText() {
26
return pht('Utilize the full capabilities of your ALU.');
27
}
28
29
public function getApplicationGroup() {
30
return self::GROUP_UTILITIES;
31
}
32
33
public function getRemarkupRules() {
34
return array(
35
new PhabricatorCountdownRemarkupRule(),
36
);
37
}
38
39
public function getRoutes() {
40
return array(
41
'/C(?P<id>[1-9]\d*)' => 'PhabricatorCountdownViewController',
42
'/countdown/' => array(
43
'(?:query/(?P<queryKey>[^/]+)/)?'
44
=> 'PhabricatorCountdownListController',
45
$this->getEditRoutePattern('edit/')
46
=> 'PhabricatorCountdownEditController',
47
),
48
);
49
}
50
51
protected function getCustomCapabilities() {
52
return array(
53
PhabricatorCountdownDefaultViewCapability::CAPABILITY => array(
54
'caption' => pht('Default view policy for new countdowns.'),
55
'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST,
56
'capability' => PhabricatorPolicyCapability::CAN_VIEW,
57
),
58
PhabricatorCountdownDefaultEditCapability::CAPABILITY => array(
59
'caption' => pht('Default edit policy for new countdowns.'),
60
'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST,
61
'capability' => PhabricatorPolicyCapability::CAN_EDIT,
62
),
63
);
64
}
65
66
}
67
68