1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 03:02:43 +01:00
phorge-phorge/src/applications/maniphest/command/ManiphestClaimEmailCommand.php
epriestley e068188ea1 Mention !status explicitly in the documentation for !close
Summary: Ref T10088.

Test Plan: {F1055107}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10088

Differential Revision: https://secure.phabricator.com/D14953
2016-01-05 15:08:52 -08:00

32 lines
729 B
PHP

<?php
final class ManiphestClaimEmailCommand
extends ManiphestEmailCommand {
public function getCommand() {
return 'claim';
}
public function getCommandSummary() {
return pht(
'Assign yourself as the owner of a task. To assign another user, '.
'see `%s`.',
'!assign');
}
public function buildTransactions(
PhabricatorUser $viewer,
PhabricatorApplicationTransactionInterface $object,
PhabricatorMetaMTAReceivedMail $mail,
$command,
array $argv) {
$xactions = array();
$xactions[] = $object->getApplicationTransactionTemplate()
->setTransactionType(ManiphestTransaction::TYPE_OWNER)
->setNewValue($viewer->getPHID());
return $xactions;
}
}