Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F567926
DifferentialRevisionRepositoryProjectsHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
764 B
Referenced Files
None
Subscribers
None
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
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 1:07 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
114864
Default Alt Text
DifferentialRevisionRepositoryProjectsHeraldField.php (764 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment