Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93428845
HarbormasterBuildStepGroup.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
Thu, Nov 28, 16:49
Size
841 B
Mime Type
text/x-php
Expires
Sat, Nov 30, 16:49 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22633311
Attached To
rPH Phabricator
HarbormasterBuildStepGroup.php
View Options
<?php
abstract
class
HarbormasterBuildStepGroup
extends
Phobject
{
abstract
public
function
getGroupName
();
abstract
public
function
getGroupOrder
();
public
function
isEnabled
()
{
return
true
;
}
public
function
shouldShowIfEmpty
()
{
return
true
;
}
final
public
function
getGroupKey
()
{
return
$this
->
getPhobjectClassConstant
(
'GROUPKEY'
);
}
final
public
static
function
getAllGroups
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getGroupKey'
)
->
setSortMethod
(
'getGroupOrder'
)
->
execute
();
}
final
public
static
function
getAllEnabledGroups
()
{
$groups
=
self
::
getAllGroups
();
foreach
(
$groups
as
$key
=>
$group
)
{
if
(!
$group
->
isEnabled
())
{
unset
(
$groups
[
$key
]);
}
}
return
$groups
;
}
}
Event Timeline
Log In to Comment