本文整理匯總了PHP中Setup::pageTitleAdd方法的典型用法代碼示例。如果您正苦於以下問題:PHP Setup::pageTitleAdd方法的具體用法?PHP Setup::pageTitleAdd怎麽用?PHP Setup::pageTitleAdd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Setup
的用法示例。
在下文中一共展示了Setup::pageTitleAdd方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tpl
/**
* Configue the main template
* @param array $contentMain - template content data
* @return Template
*/
public function tpl($contentMain)
{
// configure main template
$this->ssp->pageTitleAdd("User admin");
if (isset($contentMain["title"])) {
$this->ssp->pageTitleAdd($contentMain["title"]);
}
$url = $_SERVER['REQUEST_URI'];
$menu = new MenuGen();
$menu->add($this->cfg->userLister . '/filterChange', $this->session->t("Modify Search"), $url === '/sspadmin/filterChange');
if ($this->cfg->adminCheck) {
if (!($this->filter->userAdminPending == 1 and $this->filter->creationFinished == 1)) {
$menu->add($this->cfg->userLister . '/filterAdminPending', $this->session->t("List Admin Pending"), $url === '/sspadmin/filterAdminPending');
}
}
$menu->add($this->cfg->userLister . '/filterNormal', $this->session->t("Defualt Listing"), $url === '/sspadmin/filterNormal');
$menu->add('userlisterhelp.php', $this->session->t("Help"));
$menu->sv("target=help");
$contentMain["menu"] = $menu->cMenu();
$tpl = $this->ssp->tpl($contentMain);
return $tpl;
}