Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/storage/PhabricatorPasteTransaction.php
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| "%s updated the paste's language.", | "%s updated the paste's language.", | ||||
| $this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
| break; | break; | ||||
| } | } | ||||
| 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 All 19 Lines | switch ($type) { | ||||
| case PhabricatorPasteTransaction::TYPE_LANGUAGE: | case PhabricatorPasteTransaction::TYPE_LANGUAGE: | ||||
| return pht( | return pht( | ||||
| '%s update the language for %s.', | '%s update the language for %s.', | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| $this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
| break; | break; | ||||
| } | } | ||||
| return parent::getTitleForFeed($story); | return parent::getTitleForFeed(); | ||||
| } | } | ||||
| public function getColor() { | public function getColor() { | ||||
| $old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
| $new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case self::TYPE_CONTENT: | case self::TYPE_CONTENT: | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||