public function processRequest() { $id = $this->id; $response = new AphrontWebpageResponse(); $response->setFrameable(true); $response->setContent('<frameset cols="33%, 34%, 33%">' . '<frame src="/xhpast/input/' . $id . '/" />' . '<frame src="/xhpast/tree/' . $id . '/" />' . '<frame src="/xhpast/stream/' . $id . '/" />' . '</frameset>'); return $response; }
public function processRequest() { $id = $this->id; $response = new AphrontWebpageResponse(); $response->setFrameable(true); $response->setContent(phutil_tag('frameset', array('cols' => '33%, 34%, 33%'), array(phutil_tag('frame', array('src' => "/xhpast/input/{$id}/")), phutil_tag('frame', array('src' => "/xhpast/tree/{$id}/")), phutil_tag('frame', array('src' => "/xhpast/stream/{$id}/"))))); return $response; }
public function handleRequest(AphrontRequest $request) { $id = $request->getURIData('id'); $response = new AphrontWebpageResponse(); $response->setFrameable(true); $response->setContent(phutil_tag('frameset', array('cols' => '33%, 34%, 33%'), array(phutil_tag('frame', array('src' => "/xhpast/input/{$id}/")), phutil_tag('frame', array('src' => "/xhpast/tree/{$id}/")), phutil_tag('frame', array('src' => "/xhpast/stream/{$id}/"))))); return $response; }
public function buildStandardPageResponse($view, array $data) { $page = $this->buildStandardPageView(); $page->setApplicationName('Feed'); $page->setBaseURI('/feed/'); $page->setTitle(idx($data, 'title')); $page->setGlyph("∞"); $page->appendChild($view); $response = new AphrontWebpageResponse(); if (!empty($data['public'])) { $page->setFrameable(true); $page->setShowChrome(false); $response->setFrameable(true); } return $response->setContent($page->render()); }
public function buildStandardPageResponse($view, array $data) { $page = $this->buildStandardPageView(); $page->setApplicationName('XHProf'); $page->setBaseURI('/xhprof/'); $page->setTitle(idx($data, 'title')); $page->setGlyph("☄"); $page->appendChild($view); $response = new AphrontWebpageResponse(); if (isset($data['frame'])) { $response->setFrameable(true); $page->setFrameable(true); $page->setShowChrome(false); $page->setDisableConsole(true); } return $response->setContent($page->render()); }
protected function buildXHPASTViewPanelResponse($content) { $content = '<!DOCTYPE html>' . '<html>' . '<head>' . '<style type="text/css"> body { white-space: pre; font: 10px "Monaco"; cursor: pointer; } .token { padding: 2px 4px; margin: 2px 2px; border: 1px solid #bbbbbb; line-height: 24px; } ul { margin: 0 0 0 1em; padding: 0; list-style: none; line-height: 1em; } li { margin: 0; padding: 0; } li span { background: #dddddd; padding: 3px 6px; } </style>' . '</head>' . '<body>' . $content . '</body>' . '</html>'; $response = new AphrontWebpageResponse(); $response->setFrameable(true); $response->setContent($content); return $response; }