Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F509622
PhabricatorSubscriptionsMailEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
819 B
Referenced Files
None
Subscribers
None
PhabricatorSubscriptionsMailEngineExtension.php
View Options
<?php
final
class
PhabricatorSubscriptionsMailEngineExtension
extends
PhabricatorMailEngineExtension
{
const
EXTENSIONKEY
=
'subscriptions'
;
public
function
supportsObject
(
$object
)
{
return
(
$object
instanceof
PhabricatorSubscribableInterface
);
}
public
function
newMailStampTemplates
(
$object
)
{
return
array
(
id
(
new
PhabricatorPHIDMailStamp
())
->
setKey
(
'subscriber'
)
->
setLabel
(
pht
(
'Subscriber'
)),
);
}
public
function
newMailStamps
(
$object
,
array
$xactions
)
{
$editor
=
$this
->
getEditor
();
$viewer
=
$this
->
getViewer
();
$subscriber_phids
=
PhabricatorEdgeQuery
::
loadDestinationPHIDs
(
$object
->
getPHID
(),
PhabricatorObjectHasSubscriberEdgeType
::
EDGECONST
);
$this
->
getMailStamp
(
'subscriber'
)
->
setValue
(
$subscriber_phids
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 11, 9:32 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
104446
Default Alt Text
PhabricatorSubscriptionsMailEngineExtension.php (819 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment