Differential D19683 Diff 47036 src/applications/phriction/controller/PhrictionDocumentController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phriction/controller/PhrictionDocumentController.php
Show First 20 Lines • Show All 371 Lines • ▼ Show 20 Lines | $page_content = id(new PHUIDocumentView()) | ||||
$move_notice, | $move_notice, | ||||
$core_content, | $core_content, | ||||
)); | )); | ||||
if ($curtain) { | if ($curtain) { | ||||
$page_content->setCurtain($curtain); | $page_content->setCurtain($curtain); | ||||
} | } | ||||
if ($document->getPHID()) { | |||||
$timeline = $this->buildTransactionTimeline( | $timeline = $this->buildTransactionTimeline( | ||||
$document, | $document, | ||||
new PhrictionTransactionQuery()); | new PhrictionTransactionQuery()); | ||||
$edit_engine = id(new PhrictionDocumentEditEngine()) | $edit_engine = id(new PhrictionDocumentEditEngine()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->setTargetObject($document); | ->setTargetObject($document); | ||||
$comment_view = $edit_engine | $comment_view = $edit_engine | ||||
->buildEditEngineCommentView($document); | ->buildEditEngineCommentView($document); | ||||
} else { | |||||
$timeline = null; | |||||
$comment_view = null; | |||||
} | |||||
return $this->newPage() | return $this->newPage() | ||||
->setTitle($page_title) | ->setTitle($page_title) | ||||
->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
->setPageObjectPHIDs(array($document->getPHID())) | ->setPageObjectPHIDs(array($document->getPHID())) | ||||
->appendChild( | ->appendChild( | ||||
array( | array( | ||||
$page_content, | $page_content, | ||||
▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines |