[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorHarbormasterApplication extends PhabricatorApplication { 4 5 public function getBaseURI() { 6 return '/harbormaster/'; 7 } 8 9 public function getName() { 10 return pht('Harbormaster'); 11 } 12 13 public function getShortDescription() { 14 return pht('Build/CI'); 15 } 16 17 public function getIconName() { 18 return 'harbormaster'; 19 } 20 21 public function getTitleGlyph() { 22 return "\xE2\x99\xBB"; 23 } 24 25 public function getFlavorText() { 26 return pht('Ship Some Freight'); 27 } 28 29 public function getApplicationGroup() { 30 return self::GROUP_UTILITIES; 31 } 32 33 public function getEventListeners() { 34 return array( 35 new HarbormasterUIEventListener(), 36 ); 37 } 38 39 public function isPrototype() { 40 return true; 41 } 42 43 public function getRemarkupRules() { 44 return array( 45 new HarbormasterRemarkupRule(), 46 ); 47 } 48 49 public function getRoutes() { 50 return array( 51 '/B(?P<id>[1-9]\d*)' => 'HarbormasterBuildableViewController', 52 '/harbormaster/' => array( 53 '(?:query/(?P<queryKey>[^/]+)/)?' 54 => 'HarbormasterBuildableListController', 55 'step/' => array( 56 'add/(?:(?P<id>\d+)/)?' => 'HarbormasterStepAddController', 57 'new/(?P<plan>\d+)/(?P<class>[^/]+)/' 58 => 'HarbormasterStepEditController', 59 'edit/(?:(?P<id>\d+)/)?' => 'HarbormasterStepEditController', 60 'delete/(?:(?P<id>\d+)/)?' => 'HarbormasterStepDeleteController', 61 ), 62 'buildable/' => array( 63 '(?P<id>\d+)/(?P<action>stop|resume|restart)/' 64 => 'HarbormasterBuildableActionController', 65 ), 66 'build/' => array( 67 '(?P<id>\d+)/' => 'HarbormasterBuildViewController', 68 '(?P<action>stop|resume|restart)/(?P<id>\d+)/(?:(?P<via>[^/]+)/)?' 69 => 'HarbormasterBuildActionController', 70 ), 71 'plan/' => array( 72 '(?:query/(?P<queryKey>[^/]+)/)?' 73 => 'HarbormasterPlanListController', 74 'edit/(?:(?P<id>\d+)/)?' => 'HarbormasterPlanEditController', 75 'order/(?:(?P<id>\d+)/)?' => 'HarbormasterPlanOrderController', 76 'disable/(?P<id>\d+)/' => 'HarbormasterPlanDisableController', 77 'run/(?P<id>\d+)/' => 'HarbormasterPlanRunController', 78 '(?P<id>\d+)/' => 'HarbormasterPlanViewController', 79 ), 80 ), 81 ); 82 } 83 84 public function getCustomCapabilities() { 85 return array( 86 HarbormasterManagePlansCapability::CAPABILITY => array( 87 'caption' => pht('Can create and manage build plans.'), 88 'default' => PhabricatorPolicies::POLICY_ADMIN, 89 ), 90 ); 91 } 92 93 }
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 |