Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104575410
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
Mon, Mar 10, 14:43
Size
852 B
Mime Type
text/x-php
Expires
Wed, Mar 12, 14:43 (2 d)
Engine
blob
Format
Raw Data
Handle
24767899
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
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
loadDifferentialRevision
();
if
(!
$revision
)
{
return
array
();
}
return
$revision
->
getReviewers
();
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
switch
(
$condition
)
{
case
HeraldAdapter
::
CONDITION_EXISTS
:
case
HeraldAdapter
::
CONDITION_NOT_EXISTS
:
return
HeraldAdapter
::
VALUE_NONE
;
default
:
return
HeraldAdapter
::
VALUE_USER_OR_PROJECT
;
}
}
}
Event Timeline
Log In to Comment