[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/nuance/application/ -> PhabricatorNuanceApplication.php (source)

   1  <?php
   2  
   3  final class PhabricatorNuanceApplication extends PhabricatorApplication {
   4  
   5    public function getName() {
   6      return pht('Nuance');
   7    }
   8  
   9    public function getIconName() {
  10      return 'nuance';
  11    }
  12  
  13    public function getTitleGlyph() {
  14      return "\xE2\x98\x8E";
  15    }
  16  
  17    public function isPrototype() {
  18      return true;
  19    }
  20  
  21    public function isLaunchable() {
  22      // Try to hide this even more for now.
  23      return false;
  24    }
  25  
  26    public function canUninstall() {
  27      return true;
  28    }
  29  
  30    public function getBaseURI() {
  31      return '/nuance/';
  32    }
  33  
  34    public function getShortDescription() {
  35      return pht('High-Volume Task Queues');
  36    }
  37  
  38    public function getRoutes() {
  39      return array(
  40        '/nuance/' => array(
  41          'item/' => array(
  42            'view/(?P<id>[1-9]\d*)/' => 'NuanceItemViewController',
  43            'edit/(?P<id>[1-9]\d*)/' => 'NuanceItemEditController',
  44            'new/'                   => 'NuanceItemEditController',
  45          ),
  46          'source/' => array(
  47            'view/(?P<id>[1-9]\d*)/' => 'NuanceSourceViewController',
  48            'edit/(?P<id>[1-9]\d*)/' => 'NuanceSourceEditController',
  49            'new/'                   => 'NuanceSourceEditController',
  50          ),
  51          'queue/' => array(
  52            'view/(?P<id>[1-9]\d*)/' => 'NuanceQueueViewController',
  53            'edit/(?P<id>[1-9]\d*)/' => 'NuanceQueueEditController',
  54            'new/'                   => 'NuanceQueueEditController',
  55          ),
  56          'requestor/' => array(
  57            'view/(?P<id>[1-9]\d*)/' => 'NuanceRequestorViewController',
  58            'edit/(?P<id>[1-9]\d*)/' => 'NuanceRequestorEditController',
  59            'new/'                   => 'NuanceRequestorEditController',
  60          ),
  61        ),
  62      );
  63    }
  64  
  65    protected function getCustomCapabilities() {
  66      return array(
  67        NuanceSourceDefaultViewCapability::CAPABILITY => array(
  68          'caption' => pht('Default view policy for newly created sources.'),
  69        ),
  70        NuanceSourceDefaultEditCapability::CAPABILITY => array(
  71          'caption' => pht('Default edit policy for newly created sources.'),
  72        ),
  73        NuanceSourceManageCapability::CAPABILITY => array(),
  74      );
  75    }
  76  
  77  }


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