Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106817199
PhabricatorSubscriptionsRemoveSelfHeraldAction.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, Apr 1, 02:09
Size
762 B
Mime Type
text/x-php
Expires
Thu, Apr 3, 02:09 (2 d)
Engine
blob
Format
Raw Data
Handle
25248399
Attached To
rPH Phabricator
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.'
);
}
}
Event Timeline
Log In to Comment