Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105900166
DiffusionPreCommitContentCommitterHeraldField.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
Thu, Mar 20, 16:33
Size
742 B
Mime Type
text/x-php
Expires
Sat, Mar 22, 16:33 (2 d)
Engine
blob
Format
Raw Data
Handle
25068685
Attached To
rPH Phabricator
DiffusionPreCommitContentCommitterHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentCommitterHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.commit.committer'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Committer'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()->
getCommitterPHID
();
}
protected
function
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_PHID_NULLABLE
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
switch
(
$condition
)
{
case
HeraldAdapter
::
CONDITION_EXISTS
:
case
HeraldAdapter
::
CONDITION_NOT_EXISTS
:
return
HeraldAdapter
::
VALUE_NONE
;
default
:
return
HeraldAdapter
::
VALUE_USER
;
}
}
}
Event Timeline
Log In to Comment