Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96624141
DifferentialRevisionPackageHeraldField.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
Sun, Dec 29, 03:22
Size
589 B
Mime Type
text/x-php
Expires
Tue, Dec 31, 03:22 (2 d)
Engine
blob
Format
Raw Data
Handle
23202731
Attached To
rPH Phabricator
DifferentialRevisionPackageHeraldField.php
View Options
<?php
final
class
DifferentialRevisionPackageHeraldField
extends
DifferentialRevisionHeraldField
{
const
FIELDCONST
=
'differential.revision.package'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Affected packages'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$packages
=
$this
->
getAdapter
()->
loadAffectedPackages
();
return
mpull
(
$packages
,
'getPHID'
);
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
()
{
return
new
PhabricatorOwnersPackageDatasource
();
}
}
Event Timeline
Log In to Comment