Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117083862
DiffusionPreCommitContentAuthorHeraldField.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, Jun 11, 09:59
Size
730 B
Mime Type
text/x-php
Expires
Fri, Jun 13, 09:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26716001
Attached To
rPH Phabricator
DiffusionPreCommitContentAuthorHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentAuthorHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.commit.author'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Author'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()->
getAuthorPHID
();
}
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