Page MenuHomePhorge

ManiphestCloseEmailCommand.php
No OneTemporary

Size
858 B
Referenced Files
None
Subscribers
None

ManiphestCloseEmailCommand.php

<?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

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)

Event Timeline