Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93075246
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
Tue, Nov 26, 00:41
Size
652 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 00:41 (2 d)
Engine
blob
Format
Raw Data
Handle
22568112
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