Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117752248
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
Sun, Jun 15, 18:19
Size
730 B
Mime Type
text/x-php
Expires
Tue, Jun 17, 18:19 (2 d)
Engine
blob
Format
Raw Data
Handle
26790768
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