id = $data['id']; } public function processRequest() { $changeset = id(new DifferentialChangeset())->load($this->id); if (!$changeset) { return new Aphront404Response(); } $changeset->attachHunks($changeset->loadHunks()); $parser = new DifferentialChangesetParser(); $parser->setChangeset($changeset); $output = $parser->render(); $request = $this->getRequest(); if ($request->isAjax()) { return id(new AphrontAjaxResponse()) ->setContent($output); } $detail = new DifferentialChangesetDetailView(); $detail->setChangeset($changeset); $detail->appendChild($output); $output = '
'. '
'. $detail->render(). '
'. '
'; return $this->buildStandardPageResponse( array( $output ), array( 'title' => 'Changeset View', )); } }