Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96542637
DiffusionCommitRepositoryProjectsHeraldField.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
Fri, Dec 27, 20:47
Size
652 B
Mime Type
text/x-php
Expires
Sun, Dec 29, 20:47 (2 d)
Engine
blob
Format
Raw Data
Handle
23203344
Attached To
rPH Phabricator
DiffusionCommitRepositoryProjectsHeraldField.php
View Options
<?php
final
class
DiffusionCommitRepositoryProjectsHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.repository.projects'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Repository projects'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$object
->
getRepository
()->
getPHID
(),
PhabricatorProjectObjectHasProjectEdgeType
::
EDGECONST
);
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectDatasource
();
}
}
Event Timeline
Log In to Comment