Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/xaction/NuanceItemStatusTransaction.php
- This file was added.
| <?php | |||||
| final class NuanceItemStatusTransaction | |||||
| extends NuanceItemTransactionType { | |||||
| const TRANSACTIONTYPE = 'nuance.item.status'; | |||||
| public function generateOldValue($object) { | |||||
| return $object->getStatus(); | |||||
| } | |||||
| public function applyInternalEffects($object, $value) { | |||||
| $object->setStatus($value); | |||||
| } | |||||
| public function getTitle() { | |||||
| return pht( | |||||
| '%s changed the status of this item from %s to %s.', | |||||
| $this->renderAuthor(), | |||||
| $this->renderOldValue(), | |||||
| $this->renderNewValue()); | |||||
| } | |||||
| } | |||||