Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82365646
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
Wed, Sep 11, 00:20
Size
858 B
Mime Type
text/x-php
Expires
Fri, Sep 13, 00:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20687808
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