Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547497
DiffusionPreCommitContentCommitterPackagesHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
898 B
Referenced Files
None
Subscribers
None
DiffusionPreCommitContentCommitterPackagesHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentCommitterPackagesHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.commit.committer.packages'
;
public
function
getHeraldFieldName
()
{
return
pht
(
"Committer's packages"
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$adapter
=
$this
->
getAdapter
();
$viewer
=
$adapter
->
getViewer
();
$committer_phid
=
$adapter
->
getCommitterPHID
();
if
(!
$committer_phid
)
{
return
array
();
}
$packages
=
id
(
new
PhabricatorOwnersPackageQuery
())
->
setViewer
(
$viewer
)
->
withAuthorityPHIDs
(
array
(
$committer_phid
))
->
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, May 12, 1:34 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121737
Default Alt Text
DiffusionPreCommitContentCommitterPackagesHeraldField.php (898 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment