Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97513663
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
Sat, Jan 4, 19:30
Size
529 B
Mime Type
text/x-php
Expires
Mon, Jan 6, 19:30 (2 d)
Engine
blob
Format
Raw Data
Handle
23419762
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
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