Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98238280
DiffusionPreCommitRefPusherProjectsHeraldField.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
Sat, Jan 11, 08:47
Size
794 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 08:47 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23537985
Attached To
rPH Phabricator
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
getHeraldFieldStandardConditions
()
{
return
HeraldField
::
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_PROJECT
;
}
}
}
Event Timeline
Log In to Comment