Differential D11088 Diff 26708 src/applications/transactions/view/PhabricatorApplicationTransactionView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/view/PhabricatorApplicationTransactionView.php
| <?php | <?php | ||||
| /** | /** | ||||
| * @concrete-extensible | * @concrete-extensible | ||||
| */ | */ | ||||
| class PhabricatorApplicationTransactionView extends AphrontView { | class PhabricatorApplicationTransactionView extends AphrontView { | ||||
| private $transactions; | private $transactions; | ||||
| private $engine; | private $engine; | ||||
| private $showEditActions = true; | private $showEditActions = true; | ||||
| private $isPreview; | private $isPreview; | ||||
| private $objectPHID; | private $objectPHID; | ||||
| private $shouldTerminate = false; | private $shouldTerminate = false; | ||||
| private $quoteTargetID; | private $quoteTargetID; | ||||
| private $quoteRef; | private $quoteRef; | ||||
| private $pager; | private $pager; | ||||
| private $renderAsFeed; | |||||
| private $renderData = array(); | private $renderData = array(); | ||||
| public function setRenderAsFeed($feed) { | |||||
| $this->renderAsFeed = $feed; | |||||
| return $this; | |||||
| } | |||||
| public function setQuoteRef($quote_ref) { | public function setQuoteRef($quote_ref) { | ||||
| $this->quoteRef = $quote_ref; | $this->quoteRef = $quote_ref; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getQuoteRef() { | public function getQuoteRef() { | ||||
| return $this->quoteRef; | return $this->quoteRef; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 358 Lines • ▼ Show 20 Lines | $event = id(new PHUITimelineEventView()) | ||||
| ->setColor($xaction->getColor()); | ->setColor($xaction->getColor()); | ||||
| list($token, $token_removed) = $xaction->getToken(); | list($token, $token_removed) = $xaction->getToken(); | ||||
| if ($token) { | if ($token) { | ||||
| $event->setToken($token, $token_removed); | $event->setToken($token, $token_removed); | ||||
| } | } | ||||
| if (!$this->shouldSuppressTitle($xaction, $group)) { | if (!$this->shouldSuppressTitle($xaction, $group)) { | ||||
| if ($this->renderAsFeed) { | |||||
| $title = $xaction->getTitleForFeed(); | |||||
| } else { | |||||
| $title = $xaction->getTitle(); | $title = $xaction->getTitle(); | ||||
| } | |||||
| if ($xaction->hasChangeDetails()) { | if ($xaction->hasChangeDetails()) { | ||||
| if (!$this->isPreview) { | if (!$this->isPreview) { | ||||
| $details = $this->buildChangeDetailsLink($xaction); | $details = $this->buildChangeDetailsLink($xaction); | ||||
| $title = array( | $title = array( | ||||
| $title, | $title, | ||||
| ' ', | ' ', | ||||
| $details, | $details, | ||||
| ); | ); | ||||
| ▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines | |||||