Page MenuHomec4science

ManiphestClaimEmailCommand.php
No OneTemporary

File Metadata

Created
Sat, Nov 16, 23:16

ManiphestClaimEmailCommand.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(ManiphestTaskOwnerTransaction::TRANSACTIONTYPE)
->setNewValue($viewer->getPHID());
return $xactions;
}
}

Event Timeline