Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F465843
PhabricatorSpacesApplication.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
PhabricatorSpacesApplication.php
View Options
<?php
final
class
PhabricatorSpacesApplication
extends
PhabricatorApplication
{
public
function
getBaseURI
()
{
return
'/spaces/'
;
}
public
function
getName
()
{
return
pht
(
'Spaces'
);
}
public
function
getShortDescription
()
{
return
pht
(
'Policy Namespaces'
);
}
public
function
getIcon
()
{
return
'fa-th-large'
;
}
public
function
getTitleGlyph
()
{
return
"
\x
E2
\x
97
\x
8B"
;
}
public
function
getFlavorText
()
{
return
pht
(
'Control access to groups of objects.'
);
}
public
function
getApplicationGroup
()
{
return
self
::
GROUP_UTILITIES
;
}
public
function
canUninstall
()
{
return
false
;
}
public
function
getHelpDocumentationArticles
(
PhabricatorUser
$viewer
)
{
return
array
(
array
(
'name'
=>
pht
(
'Spaces User Guide'
),
'href'
=>
PhabricatorEnv
::
getDoclink
(
'Spaces User Guide'
),
),
);
}
public
function
getRemarkupRules
()
{
return
array
(
new
PhabricatorSpacesRemarkupRule
(),
);
}
public
function
getMonograms
()
{
return
array
(
'S'
);
}
public
function
getRoutes
()
{
return
array
(
'/S(?P<id>[1-9]
\d
*)'
=>
'PhabricatorSpacesViewController'
,
'/spaces/'
=>
array
(
'(?:query/(?P<queryKey>[^/]+)/)?'
=>
'PhabricatorSpacesListController'
,
'create/'
=>
'PhabricatorSpacesEditController'
,
'edit/(?:(?P<id>
\d
+)/)?'
=>
'PhabricatorSpacesEditController'
,
'(?P<action>activate|archive)/(?P<id>
\d
+)/'
=>
'PhabricatorSpacesArchiveController'
,
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorSpacesCapabilityCreateSpaces
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
PhabricatorSpacesCapabilityDefaultView
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created spaces.'
),
'template'
=>
PhabricatorSpacesNamespacePHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_VIEW
,
),
PhabricatorSpacesCapabilityDefaultEdit
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default edit policy for newly created spaces.'
),
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
'template'
=>
PhabricatorSpacesNamespacePHIDType
::
TYPECONST
,
'capability'
=>
PhabricatorPolicyCapability
::
CAN_EDIT
,
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 11:38 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
78564
Default Alt Text
PhabricatorSpacesApplication.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment