[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorHeraldApplication extends PhabricatorApplication { 4 5 public function getBaseURI() { 6 return '/herald/'; 7 } 8 9 public function getIconName() { 10 return 'herald'; 11 } 12 13 public function getName() { 14 return pht('Herald'); 15 } 16 17 public function getShortDescription() { 18 return pht('Create Notification Rules'); 19 } 20 21 public function getTitleGlyph() { 22 return "\xE2\x98\xBF"; 23 } 24 25 public function getHelpURI() { 26 return PhabricatorEnv::getDoclink('Herald User Guide'); 27 } 28 29 public function getFlavorText() { 30 return pht('Watch for danger!'); 31 } 32 33 public function getApplicationGroup() { 34 return self::GROUP_UTILITIES; 35 } 36 37 public function getRemarkupRules() { 38 return array( 39 new HeraldRemarkupRule(), 40 ); 41 } 42 43 public function getRoutes() { 44 return array( 45 '/herald/' => array( 46 '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldRuleListController', 47 'new/' => 'HeraldNewController', 48 'rule/(?P<id>[1-9]\d*)/' => 'HeraldRuleViewController', 49 'edit/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleController', 50 'disable/(?P<id>[1-9]\d*)/(?P<action>\w+)/' 51 => 'HeraldDisableController', 52 'history/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleEditHistoryController', 53 'test/' => 'HeraldTestConsoleController', 54 'transcript/' => array( 55 '' => 'HeraldTranscriptListController', 56 '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldTranscriptListController', 57 '(?P<id>[1-9]\d*)/(?:(?P<filter>\w+)/)?' 58 => 'HeraldTranscriptController', 59 ), 60 ), 61 ); 62 } 63 64 protected function getCustomCapabilities() { 65 return array( 66 HeraldManageGlobalRulesCapability::CAPABILITY => array( 67 'caption' => pht('Global rules can bypass access controls.'), 68 'default' => PhabricatorPolicies::POLICY_ADMIN, 69 ), 70 ); 71 } 72 73 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |