Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101625007
DiffusionPreCommitContentPackageHeraldField.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
Wed, Feb 12, 05:03
Size
694 B
Mime Type
text/x-php
Expires
Fri, Feb 14, 05:03 (2 d)
Engine
blob
Format
Raw Data
Handle
24203250
Attached To
rPH Phabricator
DiffusionPreCommitContentPackageHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentPackageHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.content.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
();
}
}
Event Timeline
Log In to Comment