3 final class PhabricatorMacroDisabledTransaction
4 extends PhabricatorMacroTransactionType
{
6 const TRANSACTIONTYPE
= 'macro:disabled';
8 public function generateOldValue($object) {
9 return $object->getIsDisabled();
12 public function applyInternalEffects($object, $value) {
13 $object->setIsDisabled($value);
16 public function getTitle() {
17 if ($this->getNewValue()) {
19 '%s disabled this macro.',
20 $this->renderAuthor());
23 '%s restored this macro.',
24 $this->renderAuthor());
28 public function getTitleForFeed() {
29 if ($this->getNewValue()) {
32 $this->renderAuthor(),
33 $this->renderObject());
37 $this->renderAuthor(),
38 $this->renderObject());
42 public function getIcon() {
43 if ($this->getNewValue()) {