final public function get($varname, $namespace = 'default')
    {
        //gets a registry var, stored in a namespace of this session id
        $session = $this;

        if (!isset($namespace) || empty($namespace)) {
            //@TODO Throw an exception, we need a name or use the default;
            return false;
        }

        //@TODO, check if the regitry is not locked before adding
        $registry = $session->getNamespace($namespace);

        return $registry->get($varname);
    }
final public function get($varname, $namespace = 'default')
    {
        //gets a registry var, stored in a namespace of this session id
        $session = $this;

        if (!isset($namespace) || empty($namespace)) {
            //@TODO Throw an exception, we need a name or use the default;
            return false;
        }

        //@TODO, check if the regitry is not locked before adding
        $registry = $session->getNamespace($namespace);

        return $registry->get($varname);
    }
final public function get ( $ varname , $ namespace = 'default' ) { //gets a registry var, stored in a namespace of this session id $ session = $ this ; if ( ! isset ( $ namespace ) || empty ( $ namespace ) ) { //@TODO Throw an exception, we need a name or use the default; return false ; } //@TODO, check if the regitry is not locked before adding $ registry = $ session -> getNamespace ( $ namespace ) ; return $ registry -> get ( $ varname ) ; }
Gets a namespaced registry value, stored in the session

@param type $varname
@param type $namespace
@return type
Gets a namespaced registry value stored in the session