Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/storage/PhabricatorAuditTransaction.php
| Show First 20 Lines • Show All 252 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| $author_handle); | $author_handle); | ||||
| } | } | ||||
| } | } | ||||
| return parent::getTitle(); | return parent::getTitle(); | ||||
| } | } | ||||
| public function getTitleForFeed(PhabricatorFeedStory $story) { | public function getTitleForFeed() { | ||||
| $old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
| $new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
| $author_handle = $this->renderHandleLink($this->getAuthorPHID()); | $author_handle = $this->renderHandleLink($this->getAuthorPHID()); | ||||
| $object_handle = $this->renderHandleLink($this->getObjectPHID()); | $object_handle = $this->renderHandleLink($this->getObjectPHID()); | ||||
| $type = $this->getTransactionType(); | $type = $this->getTransactionType(); | ||||
| ▲ Show 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| return pht( | return pht( | ||||
| '%s closed the audit of %s.', | '%s closed the audit of %s.', | ||||
| $author_handle, | $author_handle, | ||||
| $object_handle); | $object_handle); | ||||
| } | } | ||||
| } | } | ||||
| return parent::getTitleForFeed($story); | return parent::getTitleForFeed(); | ||||
| } | } | ||||
| public function getBodyForFeed(PhabricatorFeedStory $story) { | public function getBodyForFeed(PhabricatorFeedStory $story) { | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case self::TYPE_COMMIT: | case self::TYPE_COMMIT: | ||||
| $data = $this->getNewValue(); | $data = $this->getNewValue(); | ||||
| return $story->renderSummary($data['summary']); | return $story->renderSummary($data['summary']); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||