[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorPholioApplication extends PhabricatorApplication { 4 5 public function getName() { 6 return pht('Pholio'); 7 } 8 9 public function getBaseURI() { 10 return '/pholio/'; 11 } 12 13 public function getShortDescription() { 14 return pht('Review Mocks and Design'); 15 } 16 17 public function getIconName() { 18 return 'pholio'; 19 } 20 21 public function getTitleGlyph() { 22 return "\xE2\x9D\xA6"; 23 } 24 25 public function getFlavorText() { 26 return pht('Things before they were cool.'); 27 } 28 29 public function getEventListeners() { 30 return array( 31 new PholioActionMenuEventListener(), 32 ); 33 } 34 35 public function getRemarkupRules() { 36 return array( 37 new PholioRemarkupRule(), 38 ); 39 } 40 41 public function getRoutes() { 42 return array( 43 '/M(?P<id>[1-9]\d*)(?:/(?P<imageID>\d+)/)?' => 'PholioMockViewController', 44 '/pholio/' => array( 45 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PholioMockListController', 46 'new/' => 'PholioMockEditController', 47 'edit/(?P<id>\d+)/' => 'PholioMockEditController', 48 'comment/(?P<id>\d+)/' => 'PholioMockCommentController', 49 'inline/' => array( 50 '(?:(?P<id>\d+)/)?' => 'PholioInlineController', 51 'list/(?P<id>\d+)/' => 'PholioInlineListController', 52 'thumb/(?P<imageid>\d+)/' => 'PholioInlineThumbController', 53 ), 54 'image/' => array( 55 'upload/' => 'PholioImageUploadController', 56 ), 57 ), 58 ); 59 } 60 61 public function getQuickCreateItems(PhabricatorUser $viewer) { 62 $items = array(); 63 64 $item = id(new PHUIListItemView()) 65 ->setName(pht('Pholio Mock')) 66 ->setIcon('fa-picture-o') 67 ->setHref($this->getBaseURI().'new/'); 68 $items[] = $item; 69 70 return $items; 71 } 72 73 protected function getCustomCapabilities() { 74 return array( 75 PholioDefaultViewCapability::CAPABILITY => array(), 76 PholioDefaultEditCapability::CAPABILITY => array(), 77 ); 78 } 79 80 }
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 |