[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

/lib/storage/ -> sfMySQLSessionStorage.class.php (sommaire)

(pas de description)

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

Définit 1 class

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


Classe: sfMySQLSessionStorage  - X-Ref

Provides support for session storage using a MySQL brand database.

<b>Required parameters:</b>

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

<b>Optional parameters:</b>

# <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> - [symfony]   - The name of the session.

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

param: sfContext A sfContext instance
param: array   An associative array of initialization parameters
return: boolean true, if initialization completes successfully, otherwise false

sessionClose()   X-Ref
Closes a session.

return: boolean true, if the session was closed, otherwise false

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

param: string A session ID
return: boolean true, if the session was destroyed, otherwise an exception is thrown

sessionGC($lifetime)   X-Ref
Cleans up old sessions.

param: int The lifetime of a session
return: boolean true, if old sessions have been cleaned, otherwise an exception is thrown

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

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

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

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

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

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

shutdown()   X-Ref
Executes the shutdown procedure.




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