Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90359676
DifferentialRevisionAuthorProjectsHeraldField.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
Thu, Oct 31, 23:06
Size
645 B
Mime Type
text/x-php
Expires
Sat, Nov 2, 23:06 (2 d)
Engine
blob
Format
Raw Data
Handle
22062000
Attached To
rPH Phabricator
DifferentialRevisionAuthorProjectsHeraldField.php
View Options
<?php
final
class
DifferentialRevisionAuthorProjectsHeraldField
extends
DifferentialRevisionHeraldField
{
const
FIELDCONST
=
'differential.revision.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
PhabricatorProjectDatasource
();
}
}
Event Timeline
Log In to Comment