本文整理汇总了PHP中registry::isset_const方法的典型用法代码示例。如果您正苦于以下问题:PHP registry::isset_const方法的具体用法?PHP registry::isset_const怎么用?PHP registry::isset_const使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类registry
的用法示例。
在下文中一共展示了registry::isset_const方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($pre_check = false, $handler = false, $pdh_call = array(), $params = null, $cb_name = '', $url_id = '')
{
parent::__construct($pre_check, $handler, $pdh_call, $params, $cb_name, $url_id);
if (registry::isset_const('url_id')) {
$this->set_url_id($url_id != "" ? $url_id : registry::get_const('url_id'), registry::get_const('url_id'));
}
//Build Path
$strPath = $this->server_path;
if (!intval($this->config->get('seo_remove_index'))) {
$strPath .= 'index.php/';
}
$strPagePath = strlen($this->page_path) ? $this->page_path : $this->env->path;
if (strpos($strPagePath, "/") === 0) {
$strPagePath = substr($strPagePath, 1);
}
$strPath .= $strPagePath;
$this->strPage = $this->page;
$this->strPath = $strPath;
$this->strPathPlain = str_replace($this->server_path, "", $strPath);
$this->action = $strPath . $this->SID . $this->simple_head_url . $this->url_id_ext;
$this->tpl->assign_vars(array('ACTION' => $this->action, 'PATH' => $strPath));
}
示例2: __isset
public function __isset($name)
{
return registry::isset_const($name);
}