sfSessionTestStorage is a fake sfSessionStorage implementation to allow easy testing.
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
-
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
-
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
-
Executes the shutdown procedure.
-
Writes data to this storage.
The preferred format for a key is directory style so naming conflicts can be avoided
|