[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/addon/creole/storage/ -> sfCreoleSessionStorage.class.php (sommaire)

(pas de description)

Poids: 307 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfCreoleSessionStorage:: (8 méthodes):
  initialize()
  sessionClose()
  sessionDestroy()
  sessionGC()
  sessionOpen()
  sessionRead()
  sessionWrite()
  shutdown()


Classe: sfCreoleSessionStorage  - X-Ref

Provides support for session storage using a CreoleDb database abstraction layer.

<b>Required parameters:</b>

# <b>db_table</b> - [none] - The database table in which session data will be
stored.

<b>Optional parameters:</b>

# <b>database</b>     - [default]   - The database connection to use
(see databases.ini).
# <b>db_id_col</b>    - [sess_id]   - The database column in which the
session id will be stored.
# <b>db_data_col</b>  - [sess_data] - The database column in which the
session data will be stored.
# <b>db_time_col</b>  - [sess_time] - The database column in which the
session timestamp will be stored.
# <b>session_name</b> - [Agavi]    - The name of the session.

initialize($context, $parameters = null)   X-Ref
Initialize this Storage.

param: Context A Context instance.
param: array   An associative array of initialization parameters.
return: bool true, if initialization completes successfully, otherwise

sessionClose()   X-Ref
Close a session.

return: bool true, if the session was closed, otherwise false.

sessionDestroy($id)   X-Ref
Destroy a session.

param: string A session ID.
return: bool true, if the session was destroyed, otherwise an exception

sessionGC($lifetime)   X-Ref
Cleanup old sessions.

param: int The lifetime of a session.
return: bool true, if old sessions have been cleaned, otherwise an

sessionOpen($path, $name)   X-Ref
Open a session.

param: string
param: string
return: bool true, if the session was opened, otherwise an exception is

sessionRead($id)   X-Ref
Read a session.

param: string A session ID.
return: bool true, if the session was read, otherwise an exception is

sessionWrite($id, $data)   X-Ref
Write session data.

param: string A session ID.
param: string A serialized chunk of session data.
return: bool true, if the session was written, otherwise an exception is

shutdown()   X-Ref
Execute the shutdown procedure.

return: void



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7