本文整理汇总了PHP中URLBuilder::getPage方法的典型用法代码示例。如果您正苦于以下问题:PHP URLBuilder::getPage方法的具体用法?PHP URLBuilder::getPage怎么用?PHP URLBuilder::getPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类URLBuilder
的用法示例。
在下文中一共展示了URLBuilder::getPage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DisplayTime
require_once __DIR__ . "/classes/display/urlbuilder.php";
require_once __DIR__ . "/classes/backend.php";
//"Config"
require_once __DIR__ . "/config/settings.php";
include_once __DIR__ . "/config/information.php";
//instances of the classes
$displayTime = new DisplayTime();
$displayTime->setUnsafeStartDate(isset($_GET['year']) ? $_GET['year'] : null, isset($_GET['month']) ? $_GET['month'] : null);
$displayTime->setUnsafeEndDate(isset($_GET['year']) ? $_GET['year'] : null, isset($_GET['month']) ? $_GET['month'] : null);
$urlBuilder = new URLBuilder(isset($_GET['show']) ? $_GET['show'] : null, $lang->getLanguage());
$backend = new Backend();
if (isset($_GET['length'])) {
$backend->setUnsafeListLength($_GET['length']);
}
//set Page title
switch ($urlBuilder->getPage()) {
case "about":
$fstat_title = FLANG_H_ABOUT_FSTAT;
break;
case "last":
$fstat_title = FLANG_H_LAST . " " . $backend->getListLength() . " " . FLANG_VISITOR_L;
break;
case "lastbots":
$fstat_title = FLANG_H_LAST . " " . $backend->getListLength() . " " . FLANG_BOT_L;
break;
case "overview":
default:
$fstat_title = FLANG_H_STATFOR . " " . $lang->monthnames[$displayTime->getStartMonth() - 1] . " " . $displayTime->getStartYear();
break;
}
?>