Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F573153
PhabricatorOwnersApplication.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
PhabricatorOwnersApplication.php
View Options
<?php
final
class
PhabricatorOwnersApplication
extends
PhabricatorApplication
{
public
function
getName
()
{
return
pht
(
'Owners'
);
}
public
function
getBaseURI
()
{
return
'/owners/'
;
}
public
function
getIcon
()
{
return
'fa-gift'
;
}
public
function
getShortDescription
()
{
return
pht
(
'Own Source Code'
);
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
98
\x
81"
;
}
public
function
getHelpDocumentationArticles
(
PhabricatorUser
$viewer
)
{
return
array
(
array
(
'name'
=>
pht
(
'Owners User Guide'
),
'href'
=>
PhabricatorEnv
::
getDoclink
(
'Owners User Guide'
),
),
);
}
public
function
getFlavorText
()
{
return
pht
(
'Adopt today!'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
getRemarkupRules
()
{
return
array
(
new
PhabricatorOwnersPackageRemarkupRule
(),
);
}
public
function
getMonograms
()
{
return
array
(
'O'
);
}
public
function
getRoutes
()
{
return
array
(
'/owners/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorOwnersListController'
,
'new/'
=>
'PhabricatorOwnersEditController'
,
'package/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorOwnersDetailController'
,
'archive/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorOwnersArchiveController'
,
'paths/(?P<id>[1-9]
\d
*)/'
=>
'PhabricatorOwnersPathsController'
,
$this
->
getEditRoutePattern
(
'edit/'
)
=>
'PhabricatorOwnersEditController'
,
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorOwnersDefaultViewCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created packages.'
),
'template'
=>
PhabricatorOwnersPackagePHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
),
PhabricatorOwnersDefaultEditCapability
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default edit policy for newly created packages.'
),
'template'
=>
PhabricatorOwnersPackagePHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_EDIT
,
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 5:43 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121933
Default Alt Text
PhabricatorOwnersApplication.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment