Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/storage/PonderQuestionTransaction.php
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
return false; | return false; | ||||
} | } | ||||
break; | break; | ||||
} | } | ||||
return parent::shouldHide(); | return parent::shouldHide(); | ||||
} | } | ||||
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(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_TITLE: | case self::TYPE_TITLE: | ||||
Show All 31 Lines | switch ($this->getTransactionType()) { | ||||
case PonderQuestionStatus::STATUS_CLOSED: | case PonderQuestionStatus::STATUS_CLOSED: | ||||
return pht( | return pht( | ||||
'%s closed %s', | '%s closed %s', | ||||
$this->renderHandleLink($author_phid), | $this->renderHandleLink($author_phid), | ||||
$this->renderHandleLink($object_phid)); | $this->renderHandleLink($object_phid)); | ||||
} | } | ||||
} | } | ||||
return parent::getTitleForFeed($story); | return parent::getTitleForFeed(); | ||||
} | } | ||||
public function getBodyForFeed(PhabricatorFeedStory $story) { | public function getBodyForFeed(PhabricatorFeedStory $story) { | ||||
$new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
$body = null; | $body = null; | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |