Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93896368
PhabricatorSettingsPanelGroup.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 2, 08:26
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 4, 08:26 (2 d)
Engine
blob
Format
Raw Data
Handle
22720947
Attached To
rPH Phabricator
PhabricatorSettingsPanelGroup.php
View Options
<?php
abstract
class
PhabricatorSettingsPanelGroup
extends
Phobject
{
private
$panels
;
abstract
public
function
getPanelGroupName
();
protected
function
getPanelGroupOrder
()
{
return
1000
;
}
final
public
function
getPanelGroupOrderVector
()
{
return
id
(
new
PhutilSortVector
())
->
addInt
(
$this
->
getPanelGroupOrder
())
->
addString
(
$this
->
getPanelGroupName
());
}
final
public
function
getPanelGroupKey
()
{
return
$this
->
getPhobjectClassConstant
(
'PANELGROUPKEY'
);
}
final
public
static
function
getAllPanelGroups
()
{
$groups
=
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getPanelGroupKey'
)
->
execute
();
return
msortv
(
$groups
,
'getPanelGroupOrderVector'
);
}
final
public
static
function
getAllPanelGroupsWithPanels
()
{
$groups
=
self
::
getAllPanelGroups
();
$panels
=
PhabricatorSettingsPanel
::
getAllPanels
();
$panels
=
mgroup
(
$panels
,
'getPanelGroupKey'
);
foreach
(
$groups
as
$key
=>
$group
)
{
$group
->
panels
=
idx
(
$panels
,
$key
,
array
());
}
return
$groups
;
}
public
function
getPanels
()
{
return
$this
->
panels
;
}
}
Event Timeline
Log In to Comment