Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F468265
DifferentialDiffAuthorProjectsHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
830 B
Referenced Files
None
Subscribers
None
DifferentialDiffAuthorProjectsHeraldField.php
View Options
<?php
final
class
DifferentialDiffAuthorProjectsHeraldField
extends
DifferentialDiffHeraldField
{
const
FIELDCONST
=
'differential.diff.author.projects'
;
public
function
getHeraldFieldName
()
{
return
pht
(
"Author's projects"
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$object
->
getAuthorPHID
(),
PhabricatorProjectMemberOfProjectEdgeType
::
EDGECONST
);
}
protected
function
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_LIST
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
switch
(
$condition
)
{
case
HeraldAdapter
::
CONDITION_EXISTS
:
case
HeraldAdapter
::
CONDITION_NOT_EXISTS
:
return
HeraldAdapter
::
VALUE_NONE
;
default
:
return
HeraldAdapter
::
VALUE_PROJECT
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 5:00 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
80444
Default Alt Text
DifferentialDiffAuthorProjectsHeraldField.php (830 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment