Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91651678
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
Wed, Nov 13, 02:41
Size
599 B
Mime Type
text/x-php
Expires
Fri, Nov 15, 02:41 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22300228
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
getHeraldFieldStandardType
()
{
return
HeraldField
::
STANDARD_BOOL
;
}
}
Event Timeline
Log In to Comment