[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/phriction/application/ -> PhabricatorPhrictionApplication.php (source)

   1  <?php
   2  
   3  final class PhabricatorPhrictionApplication extends PhabricatorApplication {
   4  
   5    public function getName() {
   6      return pht('Phriction');
   7    }
   8  
   9    public function getShortDescription() {
  10      return pht('Wiki');
  11    }
  12  
  13    public function getBaseURI() {
  14      return '/w/';
  15    }
  16  
  17    public function getIconName() {
  18      return 'phriction';
  19    }
  20  
  21    public function isPinnedByDefault(PhabricatorUser $viewer) {
  22      return true;
  23    }
  24  
  25    public function getHelpURI() {
  26      return PhabricatorEnv::getDoclink('Phriction User Guide');
  27    }
  28  
  29    public function getTitleGlyph() {
  30      return "\xE2\x9A\xA1";
  31    }
  32  
  33    public function getRemarkupRules() {
  34      return array(
  35        new PhrictionRemarkupRule(),
  36      );
  37    }
  38  
  39    public function getRoutes() {
  40      return array(
  41        // Match "/w/" with slug "/".
  42        '/w(?P<slug>/)'    => 'PhrictionDocumentController',
  43        // Match "/w/x/y/z/" with slug "x/y/z/".
  44        '/w/(?P<slug>.+/)' => 'PhrictionDocumentController',
  45  
  46        '/phriction/' => array(
  47          '(?:query/(?P<queryKey>[^/]+)/)?' => 'PhrictionListController',
  48  
  49          'history(?P<slug>/)'     => 'PhrictionHistoryController',
  50          'history/(?P<slug>.+/)'  => 'PhrictionHistoryController',
  51  
  52          'edit/(?:(?P<id>[1-9]\d*)/)?' => 'PhrictionEditController',
  53          'delete/(?P<id>[1-9]\d*)/'    => 'PhrictionDeleteController',
  54          'new/'                        => 'PhrictionNewController',
  55          'move/(?P<id>[1-9]\d*)/' => 'PhrictionMoveController',
  56  
  57          'preview/' => 'PhabricatorMarkupPreviewController',
  58          'diff/(?P<id>[1-9]\d*)/' => 'PhrictionDiffController',
  59        ),
  60      );
  61    }
  62  
  63    public function getApplicationOrder() {
  64      return 0.140;
  65    }
  66  
  67  }


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