Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93827742
DiffusionPreCommitContentRevisionReviewersHeraldField.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, Dec 1, 20:15
Size
762 B
Mime Type
text/x-php
Expires
Tue, Dec 3, 20:15 (2 d)
Engine
blob
Format
Raw Data
Handle
22711212
Attached To
rPH Phabricator
DiffusionPreCommitContentRevisionReviewersHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentRevisionReviewersHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.content.revision.reviewers'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Differential reviewers'
);
}
public
function
getFieldGroupKey
()
{
return
HeraldRelatedFieldGroup
::
FIELDGROUPKEY
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
getRevision
();
if
(!
$revision
)
{
return
array
();
}
return
$revision
->
getReviewerPHIDs
();
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
DifferentialReviewerDatasource
();
}
}
Event Timeline
Log In to Comment