Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547666
DiffusionPreCommitContentPusherIsCommitterHeraldField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
599 B
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:36 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
117503
Default Alt Text
DiffusionPreCommitContentPusherIsCommitterHeraldField.php (599 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment