Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93860576
DiffusionCommitRevisionHeraldField.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, 02:08
Size
624 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 02:08 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22715714
Attached To
rPH Phabricator
DiffusionCommitRevisionHeraldField.php
View Options
<?php
final
class
DiffusionCommitRevisionHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.revision'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Differential revision'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldRelatedFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
loadDifferentialRevision
();
if
(!
$revision
)
{
return
null
;
}
return
$revision
->
getPHID
();
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_BOOL
;
}
}
Event Timeline
Log In to Comment