[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

/lib/Horde/SessionHandler/ -> oci8.php (sommaire)

(pas de description)

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

Définit 1 class

SessionHandler_oci8:: (8 méthodes):
  close()
  read()
  write()
  destroy()
  gc()
  getSessionIDs()
  _quote()
  _connect()


Classe: SessionHandler_oci8  - X-Ref

SessionHandler:: implementation for Oracle 8i (native).

Required parameters:<pre>
'hostspec'  The hostname of the database server.
'protocol'  The communication protocol ('tcp', 'unix', etc.).
'username'  The username with which to connect to the database.
'password'  The password associated with 'username'.
'database'  The name of the database.
'table'     The name of the sessiondata table in 'database'.</pre>

Required for some configurations:<pre>
'port'  The port on which to connect to the database.</pre>

Optional parameters:<pre>
'persistent'  Use persistent DB connections? (boolean)</pre>

The table structure for the SessionHandler can be found in
horde/scripts/sql/horde_sessionhandler.oci8.sql.

$Horde: framework/SessionHandler/SessionHandler/oci8.php,v 1.8.4.11 2006/02/10 18:46:53 jan Exp $

Copyright 2003-2006 Liam Hoekenga <liamr@umich.edu>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

close()   X-Ref
Close the SessionHandler backend.

return: boolean  True on success, false otherwise.

read($id)   X-Ref
Read the data for a particular session identifier from the
SessionHandler backend.

param: string $id  The session identifier.
return: string  The session data.

write($id, $session_data)   X-Ref
Write session data to the SessionHandler backend.

param: string $id            The session identifier.
param: string $session_data  The session data.
return: boolean  True on success, false otherwise.

destroy($id)   X-Ref
Destroy the data for a particular session identifier in the
SessionHandler backend.

param: string $id  The session identifier.
return: boolean  True on success, false otherwise.

gc($maxlifetime = 1)   X-Ref
Garbage collect stale sessions from the SessionHandler backend.

param: integer $maxlifetime  The maximum age of a session.
return: boolean  True on success, false otherwise.

getSessionIDs()   X-Ref
Get a list of the valid session identifiers.

return: array  A list of valid session identifiers.

_quote($value)   X-Ref
Escape a string for insertion. Stolen from PEAR::DB.

param: string $value  The string to quote.
return: string  The quoted string.

_connect()   X-Ref
Attempts to open a connection to the SQL server.




Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7