本文整理汇总了PHP中GenericPage::display方法的典型用法代码示例。如果您正苦于以下问题:PHP GenericPage::display方法的具体用法?PHP GenericPage::display怎么用?PHP GenericPage::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericPage
的用法示例。
在下文中一共展示了GenericPage::display方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
public function display($override = '')
{
if ($this->rss) {
header('Content-Type: application/rss+xml; charset=UTF-8');
die($this->generateRSS());
} else {
return parent::display($override);
}
}
示例2: display
public function display($override = '')
{
if ($override || $this->searchMask & SEARCH_TYPE_REGULAR) {
return parent::display($override);
} else {
if ($this->searchMask & SEARCH_TYPE_OPEN) {
if (!$this->loadCache($open)) {
$this->performSearch();
$open = $this->generateOpenSearch();
$this->saveCache($open);
}
header('Content-type: application/x-javascript; charset=utf-8');
die($open);
} else {
if (!$this->loadCache($json)) {
$this->performSearch();
$json = $this->generateJsonSearch();
$this->saveCache($json);
}
header('Content-type: application/x-javascript; charset=utf-8');
die($json);
}
}
}
示例3: display
public function display($override = '')
{
if ($this->mode != CACHE_TYPE_TOOLTIP) {
return parent::display($override);
}
// do not cache profile tooltips
header('Content-type: application/x-javascript; charset=utf-8');
die($this->generateTooltip());
}
示例4: display
public function display($override = '')
{
if ($this->mode != CACHE_TYPE_TOOLTIP) {
return parent::display($override);
}
if (!$this->loadCache($tt)) {
$tt = $this->generateTooltip();
$this->saveCache($tt);
}
header('Content-type: application/x-javascript; charset=utf-8');
die($tt);
}