Example #1
0
 /**
  * __get() - method to get a variable in this objects current namespace
  *
  * @param string $name - programmatic name of a key, in a <key,value> pair in the current namespace
  * @return mixed
  */
 protected function &__get($name)
 {
     if ($name === '') {
         throw new Zend_Session_Exception("The '{$name}' key must be a non-empty string");
     }
     return parent::_namespaceGet($this->_namespace, $name);
 }
Example #2
0
 /**
  * __get() - method to get a variable in this object's current namespace
  *
  * @param string $name - programmatic name of a key, in a <key,value> pair in the current namespace
  * @return mixed
  */
 public function &__get($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::_namespaceGet($this->_namespace, $name);
 }
Example #3
0
 /**
  * namespaceGet() - get all variables in a namespace
  * Deprecated: Use getIterator() in Zend_Session_Namespace.
  *
  * @param string $namespace
  * @return array
  */
 public static function namespaceGet($namespace)
 {
     return parent::_namespaceGet($namespace);
 }