Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101187923
PhabricatorMailOutboundRoutingSelfEmailHeraldAction.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, 14:55
Size
820 B
Mime Type
text/x-php
Expires
Sat, Feb 8, 14:55 (2 d)
Engine
blob
Format
Raw Data
Handle
24066119
Attached To
rPH Phabricator
PhabricatorMailOutboundRoutingSelfEmailHeraldAction.php
View Options
<?php
final
class
PhabricatorMailOutboundRoutingSelfEmailHeraldAction
extends
PhabricatorMailOutboundRoutingHeraldAction
{
const
ACTIONCONST
=
'routing.self.email'
;
public
function
getHeraldActionName
()
{
return
pht
(
'Deliver as email'
);
}
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_MAIL
,
array
(
$author_phid
));
}
public
function
getHeraldActionStandardType
()
{
return
self
::
STANDARD_NONE
;
}
public
function
renderActionDescription
(
$value
)
{
return
pht
(
'Deliver as email.'
);
}
}
Event Timeline
Log In to Comment