Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101188417
PhabricatorMailOutboundRoutingSelfNotificationHeraldAction.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
Thu, Feb 6, 15:02
Size
856 B
Mime Type
text/x-php
Expires
Sat, Feb 8, 15:02 (2 d)
Engine
blob
Format
Raw Data
Handle
24111364
Attached To
rPH Phabricator
PhabricatorMailOutboundRoutingSelfNotificationHeraldAction.php
View Options
<?php
final
class
PhabricatorMailOutboundRoutingSelfNotificationHeraldAction
extends
PhabricatorMailOutboundRoutingHeraldAction
{
const
ACTIONCONST
=
'routing.self.notification'
;
public
function
getHeraldActionName
()
{
return
pht
(
'Deliver as notification'
);
}
public
function
supportsRuleType
(
$rule_type
)
{
return
(
$rule_type
==
HeraldRuleTypeConfig
::
RULE_TYPE_PERSONAL
);
}
public
function
applyEffect
(
$object
,
HeraldEffect
$effect
)
{
$rule
=
$effect
->
getRule
();
$author_phid
=
$rule
->
getAuthorPHID
();
$this
->
applyRouting
(
$rule
,
PhabricatorMailRoutingRule
::
ROUTE_AS_NOTIFICATION
,
array
(
$author_phid
));
}
public
function
getHeraldActionStandardType
()
{
return
self
::
STANDARD_NONE
;
}
public
function
renderActionDescription
(
$value
)
{
return
pht
(
'Deliver as notification.'
);
}
}
Event Timeline
Log In to Comment