Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97961092
DifferentialDiffAuthorProjectsHeraldField.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, Jan 8, 00:32
Size
639 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 00:32 (2 d)
Engine
blob
Format
Raw Data
Handle
23462227
Attached To
rPH Phabricator
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
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectOrUserDatasource
();
}
}
Event Timeline
Log In to Comment