Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/controller/PholioMockViewController.php
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$object_box = id(new PHUIObjectBoxView()) | $object_box = id(new PHUIObjectBoxView()) | ||||
->setHeader($header) | ->setHeader($header) | ||||
->addPropertyList($properties); | ->addPropertyList($properties); | ||||
$thumb_grid = id(new PholioMockThumbGridView()) | $thumb_grid = id(new PholioMockThumbGridView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->setMock($mock); | ->setMock($mock); | ||||
$content = array( | return $this->newPage() | ||||
$crumbs, | ->setTitle('M'.$mock->getID().' '.$title) | ||||
->setCrumbs($crumbs) | |||||
->setPageObjectPHIDs(array($mock->getPHID())) | |||||
->appendChild( | |||||
array( | |||||
$object_box, | $object_box, | ||||
$output, | $output, | ||||
$thumb_grid, | $thumb_grid, | ||||
$timeline, | $timeline, | ||||
$add_comment, | $add_comment, | ||||
); | |||||
return $this->buildApplicationPage( | |||||
$content, | |||||
array( | |||||
'title' => 'M'.$mock->getID().' '.$title, | |||||
'pageObjects' => array($mock->getPHID()), | |||||
)); | )); | ||||
} | } | ||||
private function buildActionView(PholioMock $mock) { | private function buildActionView(PholioMock $mock) { | ||||
$viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
$actions = id(new PhabricatorActionListView()) | $actions = id(new PhabricatorActionListView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |