Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2354778
DiffusionCommitPackageAuditHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
852 B
Referenced Files
None
Subscribers
None
DiffusionCommitPackageAuditHeraldField.php
View Options
<?php
final
class
DiffusionCommitPackageAuditHeraldField
extends
DiffusionCommitHeraldField
{
const
FIELDCONST
=
'diffusion.commit.package.audit'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Affected packages that need audit'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$packages
=
$this
->
getAdapter
()->
loadAuditNeededPackages
();
if
(!
$packages
)
{
return
array
();
}
return
mpull
(
$packages
,
'getPHID'
);
}
protected
function
getHeraldFieldStandardType
()
{
return
self
::
STANDARD_PHID_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
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 1:28 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
447890
Default Alt Text
DiffusionCommitPackageAuditHeraldField.php (852 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment