[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/phragment/application/ -> PhabricatorPhragmentApplication.php (source)

   1  <?php
   2  
   3  final class PhabricatorPhragmentApplication extends PhabricatorApplication {
   4  
   5    public function getName() {
   6      return pht('Phragment');
   7    }
   8  
   9    public function getBaseURI() {
  10      return '/phragment/';
  11    }
  12  
  13    public function getShortDescription() {
  14      return pht('Versioned Artifact Storage');
  15    }
  16  
  17    public function getIconName() {
  18      return 'phragment';
  19    }
  20  
  21    public function getTitleGlyph() {
  22      return "\xE2\x26\xB6";
  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 canUninstall() {
  34      return true;
  35    }
  36  
  37    public function getRoutes() {
  38      return array(
  39        '/phragment/' => array(
  40          '' => 'PhragmentBrowseController',
  41          'browse/(?P<dblob>.*)' => 'PhragmentBrowseController',
  42          'create/(?P<dblob>.*)' => 'PhragmentCreateController',
  43          'update/(?P<dblob>.+)' => 'PhragmentUpdateController',
  44          'policy/(?P<dblob>.+)' => 'PhragmentPolicyController',
  45          'history/(?P<dblob>.+)' => 'PhragmentHistoryController',
  46          'zip/(?P<dblob>.+)' => 'PhragmentZIPController',
  47          'zip@(?P<snapshot>[^/]+)/(?P<dblob>.+)' => 'PhragmentZIPController',
  48          'version/(?P<id>[0-9]*)/' => 'PhragmentVersionController',
  49          'patch/(?P<aid>[0-9x]*)/(?P<bid>[0-9]*)/' => 'PhragmentPatchController',
  50          'revert/(?P<id>[0-9]*)/(?P<dblob>.*)' => 'PhragmentRevertController',
  51          'snapshot/' => array(
  52            'create/(?P<dblob>.*)' => 'PhragmentSnapshotCreateController',
  53            'view/(?P<id>[0-9]*)/' => 'PhragmentSnapshotViewController',
  54            'delete/(?P<id>[0-9]*)/' => 'PhragmentSnapshotDeleteController',
  55            'promote/' => array(
  56              'latest/(?P<dblob>.*)' => 'PhragmentSnapshotPromoteController',
  57              '(?P<id>[0-9]*)/' => 'PhragmentSnapshotPromoteController',
  58            ),
  59          ),
  60        ),
  61      );
  62    }
  63  
  64    protected function getCustomCapabilities() {
  65      return array(
  66        PhragmentCanCreateCapability::CAPABILITY => array(),
  67      );
  68    }
  69  
  70  }


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