Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/item/NuanceItemType.php
| Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | final public function applyCommand( | ||||
| $result = $this->handleCommand($item, $command); | $result = $this->handleCommand($item, $command); | ||||
| if ($result === null) { | if ($result === null) { | ||||
| return; | return; | ||||
| } | } | ||||
| $xaction = id(new NuanceItemTransaction()) | $xaction = id(new NuanceItemTransaction()) | ||||
| ->setTransactionType(NuanceItemTransaction::TYPE_COMMAND) | ->setTransactionType(NuanceItemCommandTransaction::TRANSACTIONTYPE) | ||||
| ->setNewValue( | ->setNewValue( | ||||
| array( | array( | ||||
| 'command' => $command->getCommand(), | 'command' => $command->getCommand(), | ||||
| 'parameters' => $command->getParameters(), | 'parameters' => $command->getParameters(), | ||||
| 'result' => $result, | 'result' => $result, | ||||
| )); | )); | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| Show All 36 Lines | |||||