Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894687
DifferentialRevisionPackageHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
684 B
Referenced Files
None
Subscribers
None
DifferentialRevisionPackageHeraldField.php
View Options
<?php
final
class
DifferentialRevisionPackageHeraldField
extends
DifferentialRevisionHeraldField
{
const
FIELDCONST
=
'differential.revision.package'
;
public
function
getHeraldFieldName
(
)
{
return
pht
(
'Affected packages'
)
;
}
public
function
getFieldGroupKey
(
)
{
return
HeraldRelatedFieldGroup
::
FIELDGROUPKEY
;
}
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
(
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 20:16 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128369
Default Alt Text
DifferentialRevisionPackageHeraldField.php (684 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment