Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112653516
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, May 12, 00:30
Size
704 B
Mime Type
text/x-php
Expires
Wed, May 14, 00:30 (2 d)
Engine
blob
Format
Raw Data
Handle
26096758
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