Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102749093
PhabricatorSpacesApplication.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
Sun, Feb 23, 19:15
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Feb 25, 19:15 (2 d)
Engine
blob
Format
Raw Data
Handle
24384408
Attached To
rPH Phabricator
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
getFontIcon
()
{
return
'fa-compass'
;
}
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
true
;
}
public
function
isPrototype
()
{
return
true
;
}
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'
,
),
);
}
protected
function
getCustomCapabilities
()
{
return
array
(
PhabricatorSpacesCapabilityCreateSpaces
::
CAPABILITY
=>
array
(
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
PhabricatorSpacesCapabilityDefaultView
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default view policy for newly created spaces.'
),
),
PhabricatorSpacesCapabilityDefaultEdit
::
CAPABILITY
=>
array
(
'caption'
=>
pht
(
'Default edit policy for newly created spaces.'
),
'default'
=>
PhabricatorPolicies
::
POLICY_ADMIN
,
),
);
}
}
Event Timeline
Log In to Comment