Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fund/storage/FundInitiativeTransaction.php
| Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| $this->renderHandleLink($old), | $this->renderHandleLink($old), | ||||
| $this->renderHandleLink($new)); | $this->renderHandleLink($new)); | ||||
| } | } | ||||
| } | } | ||||
| return parent::getTitle(); | return parent::getTitle(); | ||||
| } | } | ||||
| public function getTitleForFeed(PhabricatorFeedStory $story) { | public function getTitleForFeed() { | ||||
| $author_phid = $this->getAuthorPHID(); | $author_phid = $this->getAuthorPHID(); | ||||
| $object_phid = $this->getObjectPHID(); | $object_phid = $this->getObjectPHID(); | ||||
| $old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
| $new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
| $type = $this->getTransactionType(); | $type = $this->getTransactionType(); | ||||
| switch ($type) { | switch ($type) { | ||||
| ▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| return pht( | return pht( | ||||
| '%s refunded %s to %s for %s.', | '%s refunded %s to %s for %s.', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| $amount->formatForDisplay(), | $amount->formatForDisplay(), | ||||
| $this->renderHandleLink($backer_phid), | $this->renderHandleLink($backer_phid), | ||||
| $this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
| } | } | ||||
| return parent::getTitleForFeed($story); | return parent::getTitleForFeed(); | ||||
| } | } | ||||
| public function getMailTags() { | public function getMailTags() { | ||||
| $tags = parent::getMailTags(); | $tags = parent::getMailTags(); | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case self::TYPE_STATUS: | case self::TYPE_STATUS: | ||||
| $tags[] = self::MAILTAG_STATUS; | $tags[] = self::MAILTAG_STATUS; | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||