Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F461322
PhabricatorSettingsPanelGroup.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 4:43 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
72254
Default Alt Text
PhabricatorSettingsPanelGroup.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment