Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90444669
PhabricatorPholioApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 1, 17:47
Size
2 KB
Mime Type
text/x-php
Expires
Sun, Nov 3, 17:47 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22076279
Attached To
rPH Phabricator
PhabricatorPholioApplication.php
View Options
<?php
final
class
PhabricatorPholioApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Pholio'
);
}
public
function
getBaseURI
()
{
return
'/pholio/'
;
}
public
function
getShortDescription
()
{
return
pht
(
'Review Mocks and Design'
);
}
public
function
getFontIcon
()
{
return
'fa-camera-retro'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
9D
\x
A6"
;
}
public
function
getFlavorText
()
{
return
pht
(
'Things before they were cool.'
);
}
public
function
getEventListeners
()
{
return
array
(
new
PholioActionMenuEventListener
(),
);
}
public
function
getRemarkupRules
()
{
return
array
(
new
PholioRemarkupRule
(),
);
}
public
function
getRoutes
()
{
return
array
(
'/M(?P<id>[1-9]
\d
*)(?:/(?P<imageID>
\d
+)/)?'
=>
'PholioMockViewController'
,
'/pholio/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PholioMockListController'
,
'new/'
=>
'PholioMockEditController'
,
'edit/(?P<id>
\d
+)/'
=>
'PholioMockEditController'
,
'archive/(?P<id>
\d
+)/'
=>
'PholioMockArchiveController'
,
'comment/(?P<id>
\d
+)/'
=>
'PholioMockCommentController'
,
'inline/'
=>
array
(
'(?:(?P<id>
\d
+)/)?'
=>
'PholioInlineController'
,
'list/(?P<id>
\d
+)/'
=>
'PholioInlineListController'
,
),
'image/'
=>
array
(
'upload/'
=>
'PholioImageUploadController'
,
),
),
);
}
public
function
getQuickCreateItems
(
PhabricatorUser
$viewer
)
{
$items
=
array
();
$item
=
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Pholio Mock'
))
->
setIcon
(
'fa-picture-o'
)
->
setHref
(
$this
->
getBaseURI
().
'new/'
);
$items
[]
=
$item
;
return
$items
;
}
protected
function
getCustomCapabilities
()
{
return
array
(
PholioDefaultViewCapability
::
CAPABILITY
=>
array
(
'template'
=>
PholioMockPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
),
PholioDefaultEditCapability
::
CAPABILITY
=>
array
(
'template'
=>
PholioMockPHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_EDIT
,
),
);
}
public
function
getMailCommandObjects
()
{
return
array
(
'mock'
=>
array
(
'name'
=>
pht
(
'Email Commands: Mocks'
),
'header'
=>
pht
(
'Interacting with Pholio Mocks'
),
'object'
=>
new
PholioMock
(),
'summary'
=>
pht
(
'This page documents the commands you can use to interact with '
.
'mocks in Pholio.'
),
),
);
}
public
function
getApplicationSearchDocumentTypes
()
{
return
array
(
PholioMockPHIDType
::
TYPECONST
,
);
}
}
Event Timeline
Log In to Comment