Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/nuance/xaction/NuanceItemStatusTransaction.php
12256 views
1
<?php
2
3
final class NuanceItemStatusTransaction
4
extends NuanceItemTransactionType {
5
6
const TRANSACTIONTYPE = 'nuance.item.status';
7
8
public function generateOldValue($object) {
9
return $object->getStatus();
10
}
11
12
public function applyInternalEffects($object, $value) {
13
$object->setStatus($value);
14
}
15
16
public function getTitle() {
17
return pht(
18
'%s changed the status of this item from %s to %s.',
19
$this->renderAuthor(),
20
$this->renderOldValue(),
21
$this->renderNewValue());
22
}
23
24
25
}
26
27