Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/xaction/NuanceItemCommandTransaction.php
<?php | <?php | ||||
final class NuanceItemCommandTransaction | final class NuanceItemCommandTransaction | ||||
extends NuanceItemTransactionType { | extends NuanceItemTransactionType { | ||||
const TRANSACTIONTYPE = 'nuance.item.command'; | const TRANSACTIONTYPE = 'nuance.item.command'; | ||||
public function generateOldValue($object) { | public function generateOldValue($object) { | ||||
return null; | return null; | ||||
} | } | ||||
public function applyInternalEffects($object, $value) { | |||||
// TODO: Probably implement this. | |||||
} | |||||
public function getTitle() { | public function getTitle() { | ||||
$spec = $this->getNewValue(); | |||||
$command_key = idx($spec, 'command', '???'); | |||||
return pht( | return pht( | ||||
'%s applied a command to this item.', | '%s applied a "%s" command to this item.', | ||||
$this->renderAuthor()); | $this->renderAuthor(), | ||||
$command_key); | |||||
} | } | ||||
} | } |