Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94014771
DifferentialReviewersAddBlockingSelfHeraldAction.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
Tue, Dec 3, 06:35
Size
786 B
Mime Type
text/x-php
Expires
Thu, Dec 5, 06:35 (2 d)
Engine
blob
Format
Raw Data
Handle
22711822
Attached To
rPH Phabricator
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.'
);
}
}
Event Timeline
Log In to Comment