symfony API

sfSessionTestStorage Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfSessionTestStorage is a fake sfSessionStorage implementation to allow easy testing.

Inheritence

sfSessionTestStorage  <  sfStorage

Method Summary

  • mixed &()
    Removes data from this storage.
  • clear()
    Clears all test sessions.
  • string getSessionId()
    Gets session id for the current session storage instance.
  • boolean initialize(, )
    Initializes this Storage instance.
  • shutdown()
    Executes the shutdown procedure.
  • write(, )
    Writes data to this storage.

Methods inherited from sfStorage

& , getContext , getParameter , getParameterHolder , hasParameter , initialize , newInstance , setParameter , shutdown , write

Method Details

  • (mixed) & () Browse code

    Removes data from this storage.


    The preferred format for a key is directory style so naming conflicts can be avoided.

    returns Data associated with the key

  • clear () Browse code

    Clears all test sessions.

  • (string) getSessionId () Browse code

    Gets session id for the current session storage instance.

    returns Session id

  • (boolean) initialize (, ) Browse code

    Initializes this Storage instance.

    returns true, if initialization completes successfully, otherwise false

    throws sfInitializationException If an error occurs while initializing this Storage

  • shutdown () Browse code

    Executes the shutdown procedure.

  • write (, ) Browse code

    Writes data to this storage.


    The preferred format for a key is directory style so naming conflicts can be avoided