Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102713145
DiffusionCommitPackageHeraldField.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, Feb 23, 10:51
Size
772 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 10:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24403988
Attached To
rPH Phabricator
DiffusionCommitPackageHeraldField.php
View Options
<?php
final
class
DiffusionCommitPackageHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.package'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Affected packages'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$packages
=
$this
->
getAdapter
()->
loadAffectedPackages
();
return
mpull
(
$packages
,
'getPHID'
);
}
protected
function
getHeraldFieldStandardConditions
()
{
return
self
::
STANDARD_LIST
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
switch
(
$condition
)
{
case
HeraldAdapter
::
CONDITION_EXISTS
:
case
HeraldAdapter
::
CONDITION_NOT_EXISTS
:
return
HeraldAdapter
::
VALUE_NONE
;
default
:
return
HeraldAdapter
::
VALUE_OWNERS_PACKAGE
;
}
}
}
Event Timeline
Log In to Comment