[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/almanac/application/ -> PhabricatorAlmanacApplication.php (source)

   1  <?php
   2  
   3  final class PhabricatorAlmanacApplication extends PhabricatorApplication {
   4  
   5    public function getBaseURI() {
   6      return '/almanac/';
   7    }
   8  
   9    public function getName() {
  10      return pht('Almanac');
  11    }
  12  
  13    public function getShortDescription() {
  14      return pht('Service Directory');
  15    }
  16  
  17    public function getIconName() {
  18      return 'almanac';
  19    }
  20  
  21    public function getTitleGlyph() {
  22      return "\xE2\x98\x82";
  23    }
  24  
  25    public function getApplicationGroup() {
  26      return self::GROUP_UTILITIES;
  27    }
  28  
  29    public function isPrototype() {
  30      return true;
  31    }
  32  
  33    public function getRoutes() {
  34      return array(
  35        '/almanac/' => array(
  36          '' => 'AlmanacConsoleController',
  37          'service/' => array(
  38            '(?:query/(?P<queryKey>[^/]+)/)?' => 'AlmanacServiceListController',
  39            'edit/(?:(?P<id>\d+)/)?' => 'AlmanacServiceEditController',
  40            'view/(?P<name>[^/]+)/' => 'AlmanacServiceViewController',
  41          ),
  42          'device/' => array(
  43            '(?:query/(?P<queryKey>[^/]+)/)?' => 'AlmanacDeviceListController',
  44            'edit/(?:(?P<id>\d+)/)?' => 'AlmanacDeviceEditController',
  45            'view/(?P<name>[^/]+)/' => 'AlmanacDeviceViewController',
  46          ),
  47          'interface/' => array(
  48            'edit/(?:(?P<id>\d+)/)?' => 'AlmanacInterfaceEditController',
  49          ),
  50          'binding/' => array(
  51            'edit/(?:(?P<id>\d+)/)?' => 'AlmanacBindingEditController',
  52            '(?P<id>\d+)/' => 'AlmanacBindingViewController',
  53          ),
  54          'network/' => array(
  55            '(?:query/(?P<queryKey>[^/]+)/)?' => 'AlmanacNetworkListController',
  56            'edit/(?:(?P<id>\d+)/)?' => 'AlmanacNetworkEditController',
  57            '(?P<id>\d+)/' => 'AlmanacNetworkViewController',
  58          ),
  59          'property/' => array(
  60            'edit/(?:(?P<id>\d+)/)?' => 'AlmanacPropertyEditController',
  61          ),
  62        ),
  63      );
  64    }
  65  
  66    protected function getCustomCapabilities() {
  67      return array(
  68        AlmanacCreateServicesCapability::CAPABILITY => array(
  69          'default' => PhabricatorPolicies::POLICY_ADMIN,
  70        ),
  71        AlmanacCreateDevicesCapability::CAPABILITY => array(
  72          'default' => PhabricatorPolicies::POLICY_ADMIN,
  73        ),
  74        AlmanacCreateNetworksCapability::CAPABILITY => array(
  75          'default' => PhabricatorPolicies::POLICY_ADMIN,
  76        ),
  77      );
  78    }
  79  
  80  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1