public function getStoredData($source = null)
    {
        if (null === $source) {
            $result = $this->store;

        } else {
            if (false === isset($this->store[$source])) {
                throw new Doozr_Base_Presenter_Exception(
                    sprintf('No stored data for source (key) "%s"', $source)
                );
            }

            $result = $this->store[$source];
        }

        return $result;
    }
public function getStoredData($source = null)
    {
        if (null === $source) {
            $result = $this->store;

        } else {
            if (false === isset($this->store[$source])) {
                throw new Doozr_Base_Presenter_Exception(
                    sprintf('No stored data for source (key) "%s"', $source)
                );
            }

            $result = $this->store[$source];
        }

        return $result;
    }
public function getStoredData ( $ source = null ) { if ( null === $ source ) { $ result = $ this -> store ; } else { if ( false === isset ( $ this -> store [ $ source ] ) ) { throw new Doozr_Base_Presenter_Exception ( sprintf ( 'No stored data for source (key) "%s"' , $ source ) ) ; } $ result = $ this -> store [ $ source ] ; } return $ result ; }
Returns the data from internal store.

@param string|null $source The source to return, or NULL for whole store

@author Benjamin Carl <opensource@clickalicious.de>
@return mixed The data from store
@access public
@throws \Doozr_Base_Presenter_Exception
Returns the data from internal store .