Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91427726
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
Mon, Nov 11, 00:31
Size
652 B
Mime Type
text/x-php
Expires
Wed, Nov 13, 00:31 (2 d)
Engine
blob
Format
Raw Data
Handle
22261744
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