Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1103594
DiffusionCommitAuthorHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
725 B
Referenced Files
None
Subscribers
None
DiffusionCommitAuthorHeraldField.php
View Options
<?php
final
class
DiffusionCommitAuthorHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.author'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Author'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$object
->
getCommitData
()->
getCommitDetail
(
'authorPHID'
);
}
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
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 30, 5:56 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
274737
Default Alt Text
DiffusionCommitAuthorHeraldField.php (725 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment