Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852467
DifferentialRevisionAuthorPackagesHeraldField.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
780 B
Referenced Files
None
Subscribers
None
DifferentialRevisionAuthorPackagesHeraldField.php
View Options
<?php
final
class
DifferentialRevisionAuthorPackagesHeraldField
extends
DifferentialRevisionHeraldField
{
const
FIELDCONST
=
'differential.revision.author.packages'
;
public
function
getHeraldFieldName
(
)
{
return
pht
(
"Author's packages"
)
;
}
public
function
getHeraldFieldValue
(
$object
)
{
$adapter
=
$this
->
getAdapter
(
)
;
$viewer
=
$adapter
->
getViewer
(
)
;
$packages
=
id
(
new
PhabricatorOwnersPackageQuery
(
)
)
->
setViewer
(
$viewer
)
->
withAuthorityPHIDs
(
array
(
$object
->
getAuthorPHID
(
)
)
)
->
execute
(
)
;
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
Mon, Jun 9, 06:35 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1768449
Default Alt Text
DifferentialRevisionAuthorPackagesHeraldField.php (780 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment