getAuthorPHID(); $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_CREATE: return pht( '%s created this payment provider.', $this->renderHandleLink($author_phid)); case self::TYPE_ENABLE: if ($new) { return pht( '%s enabled this payment provider.', $this->renderHandleLink($author_phid)); } else { return pht( '%s disabled this payment provider.', $this->renderHandleLink($author_phid)); } case self::TYPE_PROPERTY: // TODO: Allow providers to improve this. return pht( '%s edited a property of this payment provider.', $this->renderHandleLink($author_phid)); break; } return parent::getTitle(); } }