3 final class PhabricatorSpacesNamespaceArchiveTransaction
4 extends PhabricatorSpacesNamespaceTransactionType
{
6 const TRANSACTIONTYPE
= 'spaces:archive';
8 public function generateOldValue($object) {
9 return $object->getIsArchived();
12 public function applyInternalEffects($object, $value) {
13 $object->setIsArchived((int)$value);
16 public function getTitle() {
17 $new = $this->getNewValue();
20 '%s archived this space.',
21 $this->renderAuthor());
24 '%s activated this space.',
25 $this->renderAuthor());
29 public function getTitleForFeed() {
30 $new = $this->getNewValue();
33 '%s archived space %s.',
34 $this->renderAuthor(),
35 $this->renderObject());
38 '%s activated space %s.',
39 $this->renderAuthor(),
40 $this->renderObject());
44 public function getIcon() {
45 $new = $this->getNewValue();
53 public function getColor() {
54 $new = $this->getNewValue();