Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96788036
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
Mon, Dec 30, 20:55
Size
663 B
Mime Type
text/x-php
Expires
Wed, Jan 1, 20:55 (2 d)
Engine
blob
Format
Raw Data
Handle
23226191
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.'
);
}
public
function
buildTransactions
(
PhabricatorUser
$viewer
,
PhabricatorApplicationTransactionInterface
$object
,
PhabricatorMetaMTAReceivedMail
$mail
,
$command
,
array
$argv
)
{
$xactions
=
array
();
$xactions
[]
=
$object
->
getApplicationTransactionTemplate
()
->
setTransactionType
(
ManiphestTransaction
::
TYPE_STATUS
)
->
setNewValue
(
ManiphestTaskStatus
::
getDefaultClosedStatus
());
return
$xactions
;
}
}
Event Timeline
Log In to Comment