本文整理匯總了PHP中sys::getAlias方法的典型用法代碼示例。如果您正苦於以下問題:PHP sys::getAlias方法的具體用法?PHP sys::getAlias怎麽用?PHP sys::getAlias使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sys
的用法示例。
在下文中一共展示了sys::getAlias方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: urlencode
echo Settings::getInstance()->get("host");
?>
system/plugins/jquery/ui/jquery.ui.sortable.js"></script>
<script type="text/javascript" src="<?php
echo Settings::getInstance()->get("host");
?>
system/plugins/jquery/ui/jquery.ui.dialog.js"></script>
<script type="text/javascript" src="<?php
echo Settings::getInstance()->get("host");
?>
system/js/dialogs.js"></script>
<script type="text/javascript" src="http://api.contentlion.org/api.php?method=jsbackend&apikey=<?php
echo Settings::getInstance()->get("apikey");
?>
&alias=<?php
echo urlencode(sys::getAlias());
?>
&language=<?php
echo Settings::getInstance()->get("language");
?>
&version=<?php
echo VERSION;
?>
"></script>
<?php
sys::includeHeader();
?>
<!--[if IE 7]>
<link rel="stylesheet" href="<?php
echo sys::getFullSkinPath();
?>
示例2: Current
/**
* @return Page the open page
*/
public static function Current()
{
if (self::$current == null) {
try {
self::$current = new Page();
self::$current->loadProperties(DataBase::Current()->EscapeString(sys::getAlias()));
} catch (ContentLionException $ex) {
self::$current = $ex->getErrorPage();
}
}
return self::$current;
}
示例3: getInstance
/**
*
* @return Settings
*/
public static function getInstance()
{
if (!isset(self::$default)) {
if (!isset(self::$instances["global"]["global"]["global"])) {
$res = new Settings();
self::$instances["global"]["global"]["global"] = $res;
if (isset($_GET['include'])) {
Settings::setDefaultInstance(Settings::getInstance()->dir(sys::getAlias() . "§page"));
} else {
Settings::setDefaultInstance(Settings::getInstance()->dir("home§page"));
}
} else {
$res = self::$instances["global"]["global"]["global"];
}
self::$root = $res;
} else {
$res = self::$default;
}
return $res;
}