Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2895572
DifferentialReviewersAddBlockingReviewersHeraldAction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
966 B
Referenced Files
None
Subscribers
None
DifferentialReviewersAddBlockingReviewersHeraldAction.php
View Options
<?php
final
class
DifferentialReviewersAddBlockingReviewersHeraldAction
extends
DifferentialReviewersHeraldAction
{
const
ACTIONCONST
=
'differential.reviewers.blocking'
;
public
function
getHeraldActionName
(
)
{
return
pht
(
'Add blocking reviewers'
)
;
}
public
function
supportsRuleType
(
$rule_type
)
{
return
(
$rule_type
!=
HeraldRuleTypeConfig
::
RULE_TYPE_PERSONAL
)
;
}
public
function
applyEffect
(
$object
,
HeraldEffect
$effect
)
{
return
$this
->
applyReviewers
(
$effect
->
getTarget
(
)
,
$is_blocking
=
true
)
;
}
public
function
getHeraldActionStandardType
(
)
{
return
self
::
STANDARD_PHID_LIST
;
}
protected
function
getDatasource
(
)
{
return
new
DiffusionAuditorDatasource
(
)
;
}
public
function
renderActionDescription
(
$value
)
{
return
pht
(
'Add blocking reviewers: %s.'
,
$this
->
renderHandleList
(
$value
)
)
;
}
public
function
getPHIDsAffectedByAction
(
HeraldActionRecord
$record
)
{
return
$record
->
getTarget
(
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 21:40 (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119771
Default Alt Text
DifferentialReviewersAddBlockingReviewersHeraldAction.php (966 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment