Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diviner/controller/DivinerAtomController.php
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$group = $atom ? $atom->getProperty('group') : $symbol->getGroupName(); | $group = $atom ? $atom->getProperty('group') : $symbol->getGroupName(); | ||||
if ($group) { | if ($group) { | ||||
$group_name = $book->getGroupName($group); | $group_name = $book->getGroupName($group); | ||||
} else { | } else { | ||||
$group_name = null; | $group_name = null; | ||||
} | } | ||||
$prop_list = new PHUIPropertyGroupView(); | |||||
$prop_list->addPropertyList($properties); | |||||
$document = id(new PHUIDocumentView()) | $document = id(new PHUIDocumentView()) | ||||
->setBook($book->getTitle(), $group_name) | ->setBook($book->getTitle(), $group_name) | ||||
->setHeader($header) | ->setHeader($header) | ||||
->addClass('diviner-view') | ->addClass('diviner-view') | ||||
->appendChild($properties); | ->appendChild($prop_list); | ||||
if ($atom) { | if ($atom) { | ||||
$this->buildDefined($properties, $symbol); | $this->buildDefined($properties, $symbol); | ||||
$this->buildExtendsAndImplements($properties, $symbol); | $this->buildExtendsAndImplements($properties, $symbol); | ||||
$this->buildRepository($properties, $symbol); | $this->buildRepository($properties, $symbol); | ||||
$warnings = $atom->getWarnings(); | $warnings = $atom->getWarnings(); | ||||
if ($warnings) { | if ($warnings) { | ||||
▲ Show 20 Lines • Show All 607 Lines • Show Last 20 Lines |