Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547749
ManiphestCloseEmailCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
858 B
Referenced Files
None
Subscribers
None
ManiphestCloseEmailCommand.php
View Options
<?php
final
class
ManiphestCloseEmailCommand
extends
ManiphestEmailCommand
{
public
function
getCommand
()
{
return
'close'
;
}
public
function
getCommandSummary
()
{
return
pht
(
'Close a task. This changes the task status to the default closed '
.
'status. For a more powerful (but less concise) way to change task '
.
'statuses, see `%s`.'
,
'!status'
);
}
public
function
buildTransactions
(
PhabricatorUser
$viewer
,
PhabricatorApplicationTransactionInterface
$object
,
PhabricatorMetaMTAReceivedMail
$mail
,
$command
,
array
$argv
)
{
$xactions
=
array
();
$xactions
[]
=
$object
->
getApplicationTransactionTemplate
()
->
setTransactionType
(
ManiphestTaskStatusTransaction
::
TRANSACTIONTYPE
)
->
setNewValue
(
ManiphestTaskStatus
::
getDefaultClosedStatus
());
return
$xactions
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:37 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122876
Default Alt Text
ManiphestCloseEmailCommand.php (858 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment