Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2988991
PhabricatorMailOutboundMailHeraldAdapter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorMailOutboundMailHeraldAdapter.php
View Options
<?php
final
class
PhabricatorMailOutboundMailHeraldAdapter
extends
HeraldAdapter
{
private
$mail
;
public
function
getAdapterApplicationClass
(
)
{
return
PhabricatorMetaMTAApplication
::
class
;
}
public
function
getAdapterContentDescription
(
)
{
return
pht
(
'Route outbound email.'
)
;
}
protected
function
initializeNewAdapter
(
)
{
$this
->
mail
=
$this
->
newObject
(
)
;
}
protected
function
newObject
(
)
{
return
new
PhabricatorMetaMTAMail
(
)
;
}
public
function
isTestAdapterForObject
(
$object
)
{
return
(
$object
instanceof
PhabricatorMetaMTAMail
)
;
}
public
function
getAdapterTestDescription
(
)
{
return
pht
(
'Test rules which run when outbound mail is being prepared for '
.
'delivery.'
)
;
}
public
function
getObject
(
)
{
return
$this
->
mail
;
}
public
function
setObject
(
PhabricatorMetaMTAMail
$mail
)
{
$this
->
mail
=
$mail
;
return
$this
;
}
public
function
getAdapterContentName
(
)
{
return
pht
(
'Outbound Mail'
)
;
}
public
function
isSingleEventAdapter
(
)
{
return
true
;
}
public
function
supportsRuleType
(
$rule_type
)
{
switch
(
$rule_type
)
{
case
HeraldRuleTypeConfig
::
RULE_TYPE_GLOBAL
:
case
HeraldRuleTypeConfig
::
RULE_TYPE_PERSONAL
:
return
true
;
case
HeraldRuleTypeConfig
::
RULE_TYPE_OBJECT
:
default
:
return
false
;
}
}
public
function
getHeraldName
(
)
{
return
pht
(
'Mail %d'
,
$this
->
getObject
(
)
->
getID
(
)
)
;
}
public
function
supportsWebhooks
(
)
{
return
false
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 18:17 (9 h, 41 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1179156
Default Alt Text
PhabricatorMailOutboundMailHeraldAdapter.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment