id = $data['id']; $this->storageTree = id(new PhabricatorXHPASTViewParseTree()) ->load($this->id); if (!$this->storageTree) { throw new Exception("No such AST!"); } } protected function getStorageTree() { return $this->storageTree; } protected function buildXHPASTViewPanelResponse($content) { $content = hsprintf( ''. ''. '
'. ''. ''. '%s'. '', $content); $response = new AphrontWebpageResponse(); $response->setFrameable(true); $response->setContent($content); return $response; } }