예제 #1
0
파일: Session.php 프로젝트: jasmun/Noco100
 /**
  * namespaceUnset() - unset a namespace or a variable within a namespace
  *
  * @param string $namespace
  * @throws IfwPsn_Vendor_Zend_Session_Exception
  * @return void
  */
 public static function namespaceUnset($namespace)
 {
     parent::_namespaceUnset($namespace);
     IfwPsn_Vendor_Zend_Session_Namespace::resetSingleInstance($namespace);
 }
예제 #2
0
 /**
  * __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 IfwPsn_Vendor_Zend_Session_Exception
          */
         require_once IFW_PSN_LIB_ROOT . 'IfwPsn/Vendor/Zend/Session/Exception.php';
         throw new IfwPsn_Vendor_Zend_Session_Exception("The '{$name}' key must be a non-empty string");
     }
     return parent::_namespaceUnset($this->_namespace, $name);
 }