Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103207990
DiffusionCommitRevisionReviewersHeraldField.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
Fri, Feb 28, 05:26
Size
753 B
Mime Type
text/x-php
Expires
Sun, Mar 2, 05:26 (2 d)
Engine
blob
Format
Raw Data
Handle
24479327
Attached To
rPH Phabricator
DiffusionCommitRevisionReviewersHeraldField.php
View Options
<?php
final
class
DiffusionCommitRevisionReviewersHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.revision.reviewers'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Differential reviewers'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldRelatedFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
loadDifferentialRevision
();
if
(!
$revision
)
{
return
array
();
}
return
$revision
->
getReviewerPHIDs
();
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectOrUserDatasource
();
}
}
Event Timeline
Log In to Comment