Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100474428
PhabricatorMailOutboundRoutingHeraldAction.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
Fri, Jan 31, 02:20
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Feb 2, 02:20 (2 d)
Engine
blob
Format
Raw Data
Handle
23944857
Attached To
rPH Phabricator
PhabricatorMailOutboundRoutingHeraldAction.php
View Options
<?php
abstract
class
PhabricatorMailOutboundRoutingHeraldAction
extends
HeraldAction
{
const
DO_ROUTE
=
'do.route'
;
public
function
supportsObject
(
$object
)
{
return
(
$object
instanceof
PhabricatorMetaMTAMail
);
}
public
function
getActionGroupKey
()
{
return
HeraldApplicationActionGroup
::
ACTIONGROUPKEY
;
}
protected
function
applyRouting
(
HeraldRule
$rule
,
$route
,
$phids
)
{
$adapter
=
$this
->
getAdapter
();
$mail
=
$adapter
->
getObject
();
$mail
->
addRoutingRule
(
$route
,
$phids
,
$rule
->
getPHID
());
$this
->
logEffect
(
self
::
DO_ROUTE
,
array
(
'route'
=>
$route
,
'phids'
=>
$phids
,
));
}
protected
function
getActionEffectMap
()
{
return
array
(
self
::
DO_ROUTE
=>
array
(
'icon'
=>
'fa-arrow-right'
,
'color'
=>
'green'
,
'name'
=>
pht
(
'Routed Message'
),
),
);
}
protected
function
renderActionEffectDescription
(
$type
,
$data
)
{
switch
(
$type
)
{
case
self
::
DO_ROUTE
:
return
pht
(
'Routed mail.'
);
}
}
}
Event Timeline
Log In to Comment