Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2363865
DiffusionPreCommitRefPusherProjectsHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
793 B
Referenced Files
None
Subscribers
None
DiffusionPreCommitRefPusherProjectsHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitRefPusherProjectsHeraldField
extends
DiffusionPreCommitRefHeraldField
{
const
FIELDCONST
=
'diffusion.pre.ref.pusher.projects'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Pusher projects'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
return
$this
->
getAdapter
()
->
getHookEngine
()
->
loadViewerProjectPHIDsForHerald
();
}
protected
function
getHeraldFieldStandardType
()
{
return
HeraldField
::
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_PROJECT
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 5:10 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
451546
Default Alt Text
DiffusionPreCommitRefPusherProjectsHeraldField.php (793 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment