本文整理匯總了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);
}