Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96204910
PhabricatorConfigGroupConstants.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
Mon, Dec 23, 18:06
Size
1013 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 18:06 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23143707
Attached To
rPH Phabricator
PhabricatorConfigGroupConstants.php
View Options
<?php
abstract
class
PhabricatorConfigGroupConstants
extends
PhabricatorConfigConstants
{
const
GROUP_CORE
=
'core'
;
const
GROUP_APPLICATION
=
'apps'
;
const
GROUP_DEVELOPER
=
'developer'
;
public
static
function
getGroupName
(
$group
)
{
$map
=
array
(
self
::
GROUP_CORE
=>
pht
(
'Core Settings'
),
self
::
GROUP_APPLICATION
=>
pht
(
'Application Settings'
),
self
::
GROUP_DEVELOPER
=>
pht
(
'Developer Settings'
),
);
return
idx
(
$map
,
$group
,
pht
(
'Unknown'
));
}
public
static
function
getGroupShortName
(
$group
)
{
$map
=
array
(
self
::
GROUP_CORE
=>
pht
(
'Core'
),
self
::
GROUP_APPLICATION
=>
pht
(
'Application'
),
self
::
GROUP_DEVELOPER
=>
pht
(
'Developer'
),
);
return
idx
(
$map
,
$group
,
pht
(
'Unknown'
));
}
public
static
function
getGroupURI
(
$group
)
{
$map
=
array
(
self
::
GROUP_CORE
=>
'/'
,
self
::
GROUP_APPLICATION
=>
pht
(
'application/'
),
self
::
GROUP_DEVELOPER
=>
pht
(
'developer/'
),
);
return
idx
(
$map
,
$group
,
'#'
);
}
}
Event Timeline
Log In to Comment