Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F546708
PhabricatorSubscriptionsUnsubscribeEmailCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
926 B
Referenced Files
None
Subscribers
None
PhabricatorSubscriptionsUnsubscribeEmailCommand.php
View Options
<?php
final
class
PhabricatorSubscriptionsUnsubscribeEmailCommand
extends
MetaMTAEmailTransactionCommand
{
public
function
getCommand
()
{
return
'unsubscribe'
;
}
public
function
getCommandSummary
()
{
return
pht
(
'Remove yourself as a subscriber.'
);
}
public
function
isCommandSupportedForObject
(
PhabricatorApplicationTransactionInterface
$object
)
{
return
(
$object
instanceof
PhabricatorSubscribableInterface
);
}
public
function
buildTransactions
(
PhabricatorUser
$viewer
,
PhabricatorApplicationTransactionInterface
$object
,
PhabricatorMetaMTAReceivedMail
$mail
,
$command
,
array
$argv
)
{
$xactions
=
array
();
$xactions
[]
=
$object
->
getApplicationTransactionTemplate
()
->
setTransactionType
(
PhabricatorTransactions
::
TYPE_SUBSCRIBERS
)
->
setNewValue
(
array
(
'-'
=>
array
(
$viewer
->
getPHID
()),
));
return
$xactions
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:20 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
101972
Default Alt Text
PhabricatorSubscriptionsUnsubscribeEmailCommand.php (926 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment