Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96175344
DiffusionPreCommitContentPusherIsCommitterHeraldField.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
Mon, Dec 23, 11:29
Size
704 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 11:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23138681
Attached To
rPH Phabricator
DiffusionPreCommitContentPusherIsCommitterHeraldField.php
View Options
<?php
final
class
DiffusionPreCommitContentPusherIsCommitterHeraldField
extends
DiffusionPreCommitContentHeraldField
{
const
FIELDCONST
=
'diffusion.pre.content.pusher.is-committer'
;
public
function
getHeraldFieldName
()
{
return
pht
(
'Pusher is committer'
);
}
public
function
getHeraldFieldValue
(
$object
)
{
$pusher
=
$this
->
getAdapter
()->
getHookEngine
()->
getViewer
()->
getPHID
();
$committer
=
$this
->
getAdapter
()->
getCommitterPHID
();
return
(
$pusher
===
$committer
);
}
protected
function
getHeraldFieldStandardConditions
()
{
return
HeraldField
::
STANDARD_BOOL
;
}
public
function
getHeraldFieldValueType
(
$condition
)
{
return
HeraldAdapter
::
VALUE_NONE
;
}
}
Event Timeline
Log In to Comment