예제 #1
0
 /**
  * @param string $name
  * @return mixed
  * @throws \Zend_Session_Exception
  */
 public function &__get($name)
 {
     if ($this->lockStorage) {
         if (isset($this->lockStorage[$name])) {
             return $this->lockStorage[$name];
         }
     }
     return parent::_namespaceGet($this->_namespace, $name);
 }
예제 #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 ($this->_persistObject) {
         $data = parent::_namespaceGet($this->_namespace);
         if (is_object($data)) {
             if (isset($data->{$name})) {
                 return $data->{$name};
             }
         }
     }
     return parent::__unset($name);
 }