Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548454
DiffusionCommitRevisionAcceptedHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
922 B
Referenced Files
None
Subscribers
None
DiffusionCommitRevisionAcceptedHeraldField.php
View Options
<?php
final
class
DiffusionCommitRevisionAcceptedHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.revision.accepted'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Accepted Differential revision'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldRelatedFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
loadDifferentialRevision
();
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:49 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121919
Default Alt Text
DiffusionCommitRevisionAcceptedHeraldField.php (922 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment