/** * @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); }
/** * __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); }