Differential D16896 Diff 40684 src/applications/transactions/view/PhabricatorApplicationTransactionView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/view/PhabricatorApplicationTransactionView.php
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | public function buildPHUITimelineView($with_hiding = true) { | ||||
if ($this->getRenderData()) { | if ($this->getRenderData()) { | ||||
$view->setRenderData($this->getRenderData()); | $view->setRenderData($this->getRenderData()); | ||||
} | } | ||||
return $view; | return $view; | ||||
} | } | ||||
public function isTimelineEmpty() { | |||||
return !count($this->buildEvents(true)); | |||||
} | |||||
protected function getOrBuildEngine() { | protected function getOrBuildEngine() { | ||||
if (!$this->engine) { | if (!$this->engine) { | ||||
$field = PhabricatorApplicationTransactionComment::MARKUP_FIELD_COMMENT; | $field = PhabricatorApplicationTransactionComment::MARKUP_FIELD_COMMENT; | ||||
$engine = id(new PhabricatorMarkupEngine()) | $engine = id(new PhabricatorMarkupEngine()) | ||||
->setViewer($this->getUser()); | ->setViewer($this->getUser()); | ||||
foreach ($this->transactions as $xaction) { | foreach ($this->transactions as $xaction) { | ||||
if (!$xaction->hasComment()) { | if (!$xaction->hasComment()) { | ||||
▲ Show 20 Lines • Show All 297 Lines • Show Last 20 Lines |