Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F468380
DifferentialReviewersAddBlockingSelfHeraldAction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
786 B
Referenced Files
None
Subscribers
None
DifferentialReviewersAddBlockingSelfHeraldAction.php
View Options
<?php
final
class
DifferentialReviewersAddBlockingSelfHeraldAction
extends
DifferentialReviewersHeraldAction
{
const
ACTIONCONST
=
'differential.reviewers.self.blocking'
;
public
function
getHeraldActionName
()
{
return
pht
(
'Add me as a blocking reviewer'
);
}
public
function
supportsRuleType
(
$rule_type
)
{
return
(
$rule_type
==
HeraldRuleTypeConfig
::
RULE_TYPE_PERSONAL
);
}
public
function
applyEffect
(
$object
,
HeraldEffect
$effect
)
{
$phid
=
$effect
->
getRule
()->
getAuthorPHID
();
return
$this
->
applyReviewers
(
array
(
$phid
),
$is_blocking
=
true
);
}
public
function
getHeraldActionStandardType
()
{
return
self
::
STANDARD_NONE
;
}
public
function
renderActionDescription
(
$value
)
{
return
pht
(
'Add rule author as blocking reviewer.'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 5:11 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
80492
Default Alt Text
DifferentialReviewersAddBlockingSelfHeraldAction.php (786 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment