[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Source view] [Print] [Project Stats]
Database container for session data PEAR::MDB2 database container
Author: | Alexander Radivanovich <[email protected]> |
Author: | David Costa <[email protected]> |
Author: | Michael Metz <[email protected]> |
Author: | Stefan Neufeind <[email protected]> |
Author: | Torsten Roehr <[email protected]> |
Copyright: | 1997-2005 The PHP Group |
License: | http://www.php.net/license/3_0.txt PHP License 3.0 |
Version: | CVS: $Id: MDB2.php,v 1.5 2007/07/14 12:11:55 troehr Exp $ |
File Size: | 364 lines (11 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 1 file libraries/HTTP_Session/Session/Container/MDB2.php |
HTTP_Session_Container_MDB2:: (10 methods):
HTTP_Session_Container_MDB2()
_connect()
_setDefaults()
open()
close()
read()
write()
destroy()
replicate()
gc()
Class: HTTP_Session_Container_MDB2 - X-Ref
Database container for session dataHTTP_Session_Container_MDB2($options) X-Ref |
Constructor method $options is an array with the options.<br> The options are: <ul> <li>'dsn' - The DSN string</li> <li>'table' - Table with session data, default is 'sessiondata'</li> <li>'autooptimize' - Boolean, 'true' to optimize the table on garbage collection, default is 'false'.</li> </ul> param: array $options Options return: void |
_connect($dsn) X-Ref |
Connect to database by using the given DSN string param: string $dsn DSN string return: mixed Object on error, otherwise bool |
_setDefaults() X-Ref |
Set some default options return: void |
open($save_path, $session_name) X-Ref |
Establish connection to a database param: string $save_path Save path param: string $session_name Session name return: bool |
close() X-Ref |
Free resources return: bool |
read($id) X-Ref |
Read session data param: string $id Session id return: mixed |
write($id, $data) X-Ref |
Write session data param: string $id Session id param: mixed $data Data return: bool |
destroy($id) X-Ref |
Destroy session data param: string $id Session id return: bool |
replicate($targetTable, $id = null) X-Ref |
Replicate session data to table specified in option 'replicateBeforeDestroy' param: string $targetTable Table to replicate to param: string $id Id of record to replicate return: bool |
gc($maxlifetime) X-Ref |
Garbage collection param: int $maxlifetime Maximum lifetime return: bool |
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |