本文整理汇总了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;
}