@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhortuneAccountEmailStatusTransaction
4 extends PhortuneAccountEmailTransactionType {
5
6 const TRANSACTIONTYPE = '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 for this address to %s.',
19 $this->renderAuthor(),
20 $this->renderNewValue());
21 }
22
23}