public static function getInfoSystems() { if (self::$_systemsSession === null) { Zend_Session::start(true); $keys = Core_Session::getIterator()->getArrayCopy(); $data = NULL; foreach ($keys as $key) { $namespace = Core_Session::namespaceGet($key); if (is_object($namespace) && isset($namespace->sistemas)) { $data = $namespace->sistemas; } if (is_array($namespace) && array_key_exists('sistemas', $namespace)) { $data = $namespace['sistemas']; } } if ($data) { return $data; } return array(); } else { return self::$_systemsSession; } }
/** * Defined by Zend_Auth_Storage_Interface * * @return mixed */ public function read() { return Core_Session::namespaceGet($this->_getNamespace()); }