Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110194305
DifferentialRevisionReviewersHeraldField.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, Apr 25, 03:05
Size
732 B
Mime Type
text/x-php
Expires
Sun, Apr 27, 03:05 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25792949
Attached To
rPH Phabricator
DifferentialRevisionReviewersHeraldField.php
View Options
<?php
final
class
DifferentialRevisionReviewersHeraldField
extends
DifferentialRevisionHeraldField
{
const
FIELDCONST
=
'differential.revision.reviewers'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Reviewers'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()->
loadReviewers
();
}
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