Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90447907
DifferentialRevisionRepositoryProjectsHeraldField.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, Nov 1, 18:41
Size
764 B
Mime Type
text/x-php
Expires
Sun, Nov 3, 18:41 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22077168
Attached To
rPH Phabricator
DifferentialRevisionRepositoryProjectsHeraldField.php
View Options
<?php
final
class
DifferentialRevisionRepositoryProjectsHeraldField
extends
DifferentialRevisionHeraldField
{
const
FIELDCONST
=
'differential.revision.repository.projects'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Repository projects'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$repository
=
$this
->
getAdapter
()->
loadRepository
();
if
(!
$repository
)
{
return
array
();
}
return
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$repository
->
getPHID
(),
PhabricatorProjectObjectHasProjectEdgeType
::
EDGECONST
);
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorProjectDatasource
();
}
}
Event Timeline
Log In to Comment