getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_DISABLE: if ($new) { return 'red'; } else { return 'green'; } } return parent::getColor(); } public function getActionName() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_DISABLE: if ($new) { return pht('Disabled'); } else { return pht('Enabled'); } } return parent::getActionName(); } public function getIcon() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_DISABLE: if ($new) { return 'disable'; } else { return 'enable'; } } return parent::getIcon(); } public function getTitle() { $author_phid = $this->getAuthorPHID(); $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_DISABLE: if ($new) { return pht( '%s disabled this rule.', $this->renderHandleLink($author_phid)); } else { return pht( '%s enabled this rule.', $this->renderHandleLink($author_phid)); } } return parent::getTitle(); } }