Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F470792
PhabricatorSubscriptionsRemoveSelfHeraldAction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
762 B
Referenced Files
None
Subscribers
None
PhabricatorSubscriptionsRemoveSelfHeraldAction.php
View Options
<?php
final
class
PhabricatorSubscriptionsRemoveSelfHeraldAction
extends
PhabricatorSubscriptionsHeraldAction
{
const
ACTIONCONST
=
'subscribers.self.remove'
;
public
function
getHeraldActionName
()
{
return
pht
(
'Remove me as a subscriber'
);
}
public
function
supportsRuleType
(
$rule_type
)
{
return
(
$rule_type
==
HeraldRuleTypeConfig
::
RULE_TYPE_PERSONAL
);
}
public
function
applyEffect
(
$object
,
HeraldEffect
$effect
)
{
$phid
=
$effect
->
getRule
()->
getAuthorPHID
();
return
$this
->
applySubscribe
(
array
(
$phid
),
$is_add
=
false
);
}
public
function
getHeraldActionStandardType
()
{
return
self
::
STANDARD_NONE
;
}
public
function
renderActionDescription
(
$value
)
{
return
pht
(
'Remove rule author as subscriber.'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 12:11 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
82432
Default Alt Text
PhabricatorSubscriptionsRemoveSelfHeraldAction.php (762 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment