Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/storage/PholioTransaction.php
| Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| $this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
| $this->renderHandleLink(key($new))); | $this->renderHandleLink(key($new))); | ||||
| 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 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| case PholioTransactionType::TYPE_IMAGE_SEQUENCE: | case PholioTransactionType::TYPE_IMAGE_SEQUENCE: | ||||
| return pht( | return pht( | ||||
| '%s updated image sequence of %s.', | '%s updated image sequence of %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 getBodyForFeed(PhabricatorFeedStory $story) { | public function getBodyForFeed(PhabricatorFeedStory $story) { | ||||
| $text = null; | $text = null; | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case PholioTransactionType::TYPE_NAME: | case PholioTransactionType::TYPE_NAME: | ||||
| if ($this->getOldValue() === null) { | if ($this->getOldValue() === null) { | ||||
| $mock = $story->getPrimaryObject(); | $mock = $story->getPrimaryObject(); | ||||
| ▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines | |||||