Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F122253559
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
Wed, Jul 16, 22:19
Size
864 B
Mime Type
text/x-php
Expires
Fri, Jul 18, 22:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27445477
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
getHeraldFieldValue
(
$object
)
{
$revision
=
$this
->
getAdapter
()->
getRevision
();
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