本文整理匯總了PHP中system::OLIV_HOST方法的典型用法代碼示例。如果您正苦於以下問題:PHP system::OLIV_HOST方法的具體用法?PHP system::OLIV_HOST怎麽用?PHP system::OLIV_HOST使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類system
的用法示例。
在下文中一共展示了system::OLIV_HOST方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
public function header()
{
$base = system::OLIV_PROTOCOL() . system::OLIV_HOST() . system::OLIV_BASE();
$o = "<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>";
// set page to utf-8
$o .= "<base href='{$base}'>";
// link base referenz
$o .= "<title>" . status::oliv_page() . "</title>";
// page title in browser
$o .= "<link href='" . OLIVImage::_(system::OLIV_ICON()) . "' type='image/x-icon' rel='shortcut icon'>";
// icon in browser
return $o;
}
示例2: makeUrl
public static function makeUrl($lang, $url)
{
$valArray = array();
if ($url) {
$routeArray = array(system::OLIV_PROTOCOL() . system::OLIV_HOST() . system::OLIV_BASE() . system::OLIV_SCRIPT_NAME());
if ($lang) {
array_push($routeArray, $lang);
} else {
$lang = status::lang();
}
// use friendly name for url
$path = OLIVRoute::makePath($url);
// tranlsate and combine path
foreach ($path as $entry) {
array_push($valArray, OLIVRoute::translateFriendlyName($lang, $entry));
}
$val = implode("/", $valArray);
if ($val) {
array_push($routeArray, $val);
}
return implode("/", $routeArray);
}
}