Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90344103
HeraldActionGroup.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, Oct 31, 18:15
Size
664 B
Mime Type
text/x-php
Expires
Sat, Nov 2, 18:15 (2 d)
Engine
blob
Format
Raw Data
Handle
22057883
Attached To
rPH Phabricator
HeraldActionGroup.php
View Options
<?php
abstract
class
HeraldActionGroup
extends
HeraldGroup
{
final
public
function
getGroupKey
()
{
$class
=
new
ReflectionClass
(
$this
);
$const
=
$class
->
getConstant
(
'ACTIONGROUPKEY'
);
if
(
$const
===
false
)
{
throw
new
Exception
(
pht
(
'"%s" class "%s" must define a "%s" property.'
,
__CLASS__
,
get_class
(
$this
),
'ACTIONGROUPKEY'
));
}
return
$const
;
}
final
public
static
function
getAllActionGroups
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getGroupKey'
)
->
setSortMethod
(
'getSortKey'
)
->
execute
();
}
}
Event Timeline
Log In to Comment