Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/nuance/xaction/NuanceItemPropertyTransaction.php
12256 views
1
<?php
2
3
final class NuanceItemPropertyTransaction
4
extends NuanceItemTransactionType {
5
6
const TRANSACTIONTYPE = 'nuance.item.property';
7
8
public function generateOldValue($object) {
9
$property_key = NuanceItemTransaction::PROPERTY_KEY;
10
$key = $this->getMetadataValue($property_key);
11
return $object->getItemProperty($key);
12
}
13
14
public function applyInternalEffects($object, $value) {
15
$property_key = NuanceItemTransaction::PROPERTY_KEY;
16
$key = $this->getMetadataValue($property_key);
17
18
$object->setItemProperty($key, $value);
19
}
20
21
public function getTitle() {
22
return pht(
23
'%s set a property on this item.',
24
$this->renderAuthor());
25
}
26
27
}
28
29