Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97971243
DiffusionPreCommitContentRevisionHeraldField.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
Wed, Jan 8, 03:08
Size
541 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 03:08 (1 d, 6 h)
Engine
blob
Format
Raw Data
Handle
23467670
Attached To
rPH Phabricator
DiffusionPreCommitContentRevisionHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentRevisionHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.content.revision'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Differential revision'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
getRevision
();
if
(!
$revision
)
{
return
null
;
}
return
$revision
->
getPHID
();
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_BOOL
;
}
}
Event Timeline
Log In to Comment