protected function readSession()
    {
        // Assume empty cookie / no stored configuration
        try {
            $storedSettings = $this->getSession()->get(self::$identifier);
        } catch (Doozr_Session_Service_Exception $e) {
            $storedSettings = null;
        }

        // Check the result for validity
        if (!$storedSettings || !$this->isValidLocaleCode($storedSettings['locale'])) {
            $storedSettings = null;
        }

        return $storedSettings;
    }
protected function readSession()
    {
        // Assume empty cookie / no stored configuration
        try {
            $storedSettings = $this->getSession()->get(self::$identifier);
        } catch (Doozr_Session_Service_Exception $e) {
            $storedSettings = null;
        }

        // Check the result for validity
        if (!$storedSettings || !$this->isValidLocaleCode($storedSettings['locale'])) {
            $storedSettings = null;
        }

        return $storedSettings;
    }
protected function readSession ( ) { // Assume empty cookie / no stored configuration try { $ storedSettings = $ this -> getSession ( ) -> get ( self :: $ identifier ) ; } catch ( Doozr_Session_Service_Exception $ e ) { $ storedSettings = null ; } // Check the result for validity if ( ! $ storedSettings || ! $ this -> isValidLocaleCode ( $ storedSettings [ 'locale' ] ) ) { $ storedSettings = null ; } return $ storedSettings ; }
This method is intend to read a previous stored locale-configuration from session.

@author Benjamin Carl <opensource@clickalicious.de>

@return mixed ARRAY with locale-settings if previously stored in session, otherwise NULL
This method is intend to read a previous stored locale - configuration from session .