Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548164
DiffusionPreCommitContentRevisionAcceptedHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
934 B
Referenced Files
None
Subscribers
None
DiffusionPreCommitContentRevisionAcceptedHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentRevisionAcceptedHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.content.revision.accepted'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Accepted Differential revision'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldRelatedFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
getRevision
();
if
(!
$revision
)
{
return
null
;
}
if
(
$revision
->
isAccepted
())
{
return
$revision
->
getPHID
();
}
$was_accepted
=
DifferentialRevision
::
PROPERTY_CLOSED_FROM_ACCEPTED
;
if
(
$revision
->
isPublished
())
{
if
(
$revision
->
getProperty
(
$was_accepted
))
{
return
$revision
->
getPHID
();
}
}
return
null
;
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_BOOL
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:45 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
118544
Default Alt Text
DiffusionPreCommitContentRevisionAcceptedHeraldField.php (934 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment