Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101381002
HeraldFieldGroup.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
Sun, Feb 9, 21:44
Size
660 B
Mime Type
text/x-php
Expires
Tue, Feb 11, 21:44 (2 d)
Engine
blob
Format
Raw Data
Handle
24148489
Attached To
rPH Phabricator
HeraldFieldGroup.php
View Options
<?php
abstract
class
HeraldFieldGroup
extends
HeraldGroup
{
final
public
function
getGroupKey
()
{
$class
=
new
ReflectionClass
(
$this
);
$const
=
$class
->
getConstant
(
'FIELDGROUPKEY'
);
if
(
$const
===
false
)
{
throw
new
Exception
(
pht
(
'"%s" class "%s" must define a "%s" property.'
,
__CLASS__
,
get_class
(
$this
),
'FIELDGROUPKEY'
));
}
return
$const
;
}
final
public
static
function
getAllFieldGroups
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getGroupKey'
)
->
setSortMethod
(
'getSortKey'
)
->
execute
();
}
}
Event Timeline
Log In to Comment