3 final class FundInitiativeStatusTransaction
4 extends FundInitiativeTransactionType
{
6 const TRANSACTIONTYPE
= 'fund:status';
8 public function generateOldValue($object) {
9 return $object->getStatus();
12 public function applyInternalEffects($object, $value) {
13 $object->setStatus($value);
16 public function getTitle() {
17 if ($this->getNewValue() == FundInitiative
::STATUS_CLOSED
) {
19 '%s closed this initiative.',
20 $this->renderAuthor());
23 '%s reopened this initiative.',
24 $this->renderAuthor());
28 public function getTitleForFeed() {
29 if ($this->getNewValue() == FundInitiative
::STATUS_CLOSED
) {
32 $this->renderAuthor(),
33 $this->renderObject());
37 $this->renderAuthor(),
38 $this->renderObject());
42 public function getIcon() {
43 if ($this->getNewValue() == FundInitiative
::STATUS_CLOSED
) {