本文整理匯總了PHP中Zend_Session_Abstract::_namespaceUnset方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Session_Abstract::_namespaceUnset方法的具體用法?PHP Zend_Session_Abstract::_namespaceUnset怎麽用?PHP Zend_Session_Abstract::_namespaceUnset使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Session_Abstract
的用法示例。
在下文中一共展示了Zend_Session_Abstract::_namespaceUnset方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: namespaceUnset
/**
* namespaceUnset() - unset a namespace or a variable within a namespace
*
* @param string $namespace
* @throws Zend_Session_Exception
* @return void
*/
public static function namespaceUnset($namespace)
{
parent::_namespaceUnset($namespace);
Zend_Session_Namespace::resetSingleInstance($namespace);
}
示例2: __unset
/**
* __unset() - unset a variable in this object's namespace.
*
* @param string $name - programmatic name of a key, in a <key,value> pair in the current namespace
* @return true
*/
public function __unset($name)
{
if ($name === '') {
/**
* @see Zend_Session_Exception
*/
require_once 'Zend/Session/Exception.php';
throw new Zend_Session_Exception("The '{$name}' key must be a non-empty string");
}
return parent::_namespaceUnset($this->_namespace, $name);
}
示例3: namespaceUnset
/**
* namespaceUnset() - unset a namespace or a variable within a namespace
*
* @param string $namespace
* @throws Zend_Session_Exception
* @return void
*/
public static function namespaceUnset($namespace)
{
parent::_namespaceUnset($namespace);
}
示例4: __unset
/**
* __unset() - unset a variable in this objects namespace.
*
* @param string $name - programmatic name of a key, in a <key,value> pair in the current namespace
* @return true
*/
protected function __unset($name)
{
if ($name === '') {
throw new Zend_Session_Exception("The '{$name}' key must be a non-empty string");
}
return parent::_namespaceUnset($this->_namespace, $name);
}