-
Returns the option array.
returns The array of options
-
(bool) initialize ($options)
Browse code
| $options |
An associative array of options |
Initializes this Storage instance.
Available options:
* auto_shutdown: Whether to automatically save the changes to the session (true by default)
returns true, if initialization completes successfully, otherwise false
throws sfInitializationException If an error occurs while initializing this sfStorage
-
| $key |
A unique key identifying your data |
Reads 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
throws sfStorageException If an error occurs while reading data from this storage
-
(boolean) regenerate ($destroy)
Browse code
| $destroy |
Destroy session when regenerating? |
Regenerates id that represents this storage.
returns True if session regenerated, false if error
throws sfStorageException If an error occurs while regenerating this storage
-
| $key |
A unique key identifying your data |
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
throws sfStorageException If an error occurs while removing data from this storage
-
Executes the shutdown procedure.
throws sfStorageException If an error occurs while shutting down this storage
-
| $key |
A unique key identifying your data |
| $data |
Data associated with your key |
Writes data to this storage.
The preferred format for a key is directory style so naming conflicts can be avoided.
throws sfStorageException If an error occurs while writing to this storage
-
Class constructor.