Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92060066
ManiphestCloseEmailCommand.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
Sun, Nov 17, 00:44
Size
858 B
Mime Type
text/x-php
Expires
Tue, Nov 19, 00:44 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22369906
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment