Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547201
DifferentialDiffRepositoryProjectsHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
752 B
Referenced Files
None
Subscribers
None
DifferentialDiffRepositoryProjectsHeraldField.php
View Options
<?php
final
class
DifferentialDiffRepositoryProjectsHeraldField
extends
DifferentialDiffHeraldField
{
const
FIELDCONST
=
'differential.diff.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
Mon, May 12, 1:28 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
114870
Default Alt Text
DifferentialDiffRepositoryProjectsHeraldField.php (752 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment