Page MenuHomec4science

NuanceItemPropertyTransaction.php
No OneTemporary

File Metadata

Created
Sat, Nov 16, 22:30

NuanceItemPropertyTransaction.php

<?php
final class NuanceItemPropertyTransaction
extends NuanceItemTransactionType {
const TRANSACTIONTYPE = 'nuance.item.property';
public function generateOldValue($object) {
$property_key = NuanceItemTransaction::PROPERTY_KEY;
$key = $this->getMetadataValue($property_key);
return $object->getItemProperty($key);
}
public function applyInternalEffects($object, $value) {
$property_key = NuanceItemTransaction::PROPERTY_KEY;
$key = $this->getMetadataValue($property_key);
$object->setItemProperty($key, $value);
}
public function getTitle() {
return pht(
'%s set a property on this item.',
$this->renderAuthor());
}
}

Event Timeline