3 final class PhabricatorPholioApplication
extends PhabricatorApplication
{
5 public function getName() {
9 public function getBaseURI() {
13 public function getShortDescription() {
14 return pht('Review Mocks and Design');
17 public function getIcon() {
18 return 'fa-camera-retro';
21 public function getTitleGlyph() {
22 return "\xE2\x9D\xA6";
25 public function getFlavorText() {
26 return pht('Things before they were cool.');
29 public function getRemarkupRules() {
31 new PholioRemarkupRule(),
35 public function getRoutes() {
37 '/M(?P<id>[1-9]\d*)(?:/(?P<imageID>\d+)/)?' => 'PholioMockViewController',
39 '(?:query/(?P<queryKey>[^/]+)/)?' => 'PholioMockListController',
40 'new/' => 'PholioMockEditController',
41 'create/' => 'PholioMockEditController',
42 'edit/(?P<id>\d+)/' => 'PholioMockEditController',
43 'archive/(?P<id>\d+)/' => 'PholioMockArchiveController',
44 'comment/(?P<id>\d+)/' => 'PholioMockCommentController',
46 '(?:(?P<id>\d+)/)?' => 'PholioInlineController',
47 'list/(?P<id>\d+)/' => 'PholioInlineListController',
50 'upload/' => 'PholioImageUploadController',
56 protected function getCustomCapabilities() {
58 PholioDefaultViewCapability
::CAPABILITY
=> array(
59 'template' => PholioMockPHIDType
::TYPECONST
,
60 'capability' => PhabricatorPolicyCapability
::CAN_VIEW
,
62 PholioDefaultEditCapability
::CAPABILITY
=> array(
63 'template' => PholioMockPHIDType
::TYPECONST
,
64 'capability' => PhabricatorPolicyCapability
::CAN_EDIT
,
69 public function getMailCommandObjects() {
72 'name' => pht('Email Commands: Mocks'),
73 'header' => pht('Interacting with Pholio Mocks'),
74 'object' => new PholioMock(),
76 'This page documents the commands you can use to interact with '.
82 public function getApplicationSearchDocumentTypes() {
84 PholioMockPHIDType
::TYPECONST
,