Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117003865
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
Tue, Jun 10, 19:46
Size
853 B
Mime Type
text/x-php
Expires
Thu, Jun 12, 19:46 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26667832
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
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_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