Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100785642
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
Sun, Feb 2, 18:06
Size
646 B
Mime Type
text/x-php
Expires
Tue, Feb 4, 18:06 (2 d)
Engine
blob
Format
Raw Data
Handle
24031258
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
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_PHID_BOOL
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
return
HeraldAdapter
::
VALUE_NONE
;
}
}
Event Timeline
Log In to Comment