本文整理汇总了PHP中AphrontWebpageResponse::setFrameable方法的典型用法代码示例。如果您正苦于以下问题:PHP AphrontWebpageResponse::setFrameable方法的具体用法?PHP AphrontWebpageResponse::setFrameable怎么用?PHP AphrontWebpageResponse::setFrameable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AphrontWebpageResponse
的用法示例。
在下文中一共展示了AphrontWebpageResponse::setFrameable方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: processRequest
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;
}
示例2: processRequest
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;
}
示例3: handleRequest
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;
}
示例4: buildStandardPageResponse
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());
}
示例5: buildStandardPageResponse
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());
}
示例6: buildXHPASTViewPanelResponse
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;
}