TYPO3 CMS  TYPO3_7-6
ADODB_Session Class Reference

Public Member Functions

 driver ($driver=null)
 
 host ($host=null)
 
 user ($user=null)
 
 password ($password=null)
 
 database ($database=null)
 
 persist ($persist=null)
 
 lifetime ($lifetime=null)
 
 debug ($debug=null)
 
 expireNotify ($expire_notify=null)
 
 table ($table=null)
 
 optimize ($optimize=null)
 
 syncSeconds ($sync_seconds=null)
 
 clob ($clob=null)
 
 dataFieldName ($data_field_name=null)
 
 filter ($filter=null)
 
 encryptionKey ($encryption_key=null)
 
 _conn ($conn=null)
 
 _crc ($crc=null)
 
 _init ()
 
 _sessionKey ()
 
 _dumprs ($rs)
 
 config ($driver, $host, $user, $password, $database=false, $options=false)
 
 open ($save_path, $session_name, $persist=null)
 
 close ()
 
 read ($key)
 
 write ($key, $val)
 
 destroy ($key)
 
 gc ($maxlifetime)
 

Static Public Member Functions

static driver ($driver=null)
 
static host ($host=null)
 
static user ($user=null)
 
static password ($password=null)
 
static database ($database=null)
 
static persist ($persist=null)
 
static lifetime ($lifetime=null)
 
static debug ($debug=null)
 
static expireNotify ($expire_notify=null)
 
static table ($table=null)
 
static optimize ($optimize=null)
 
static syncSeconds ($sync_seconds=null)
 
static clob ($clob=null)
 
static dataFieldName ($data_field_name=null)
 
static filter ($filter=null)
 
static encryptionKey ($encryption_key=null)
 
static _conn ($conn=null)
 
static _crc ($crc=null)
 
static _init ()
 
static _sessionKey ()
 
static _dumprs (&$rs)
 
static config ($driver, $host, $user, $password, $database=false, $options=false)
 
static open ($save_path, $session_name, $persist=null)
 
static close ()
 
static read ($key)
 
static write ($key, $oval)
 
static destroy ($key)
 
static gc ($maxlifetime)
 

Detailed Description

Definition at line 112 of file adodb-session.php.

Member Function Documentation

◆ _conn() [1/2]

ADODB_Session::_conn (   $conn = null)

◆ _conn() [2/2]

static ADODB_Session::_conn (   $conn = null)
static

Definition at line 448 of file adodb-session2.php.

References $GLOBALS.

◆ _crc() [1/2]

ADODB_Session::_crc (   $crc = null)

Definition at line 432 of file adodb-session.php.

Referenced by read(), and write().

◆ _crc() [2/2]

static ADODB_Session::_crc (   $crc = null)
static

Definition at line 454 of file adodb-session2.php.

◆ _dumprs() [1/2]

ADODB_Session::_dumprs (   $rs)

Definition at line 467 of file adodb-session.php.

References $conn, $rs, _conn(), ADODB_SESSION, debug(), and rs2html().

Referenced by destroy(), gc(), and write().

◆ _dumprs() [2/2]

static ADODB_Session::_dumprs ( $rs)
static

Definition at line 489 of file adodb-session2.php.

References $conn, $rs, _conn(), ADODB_SESSION, debug(), and rs2html().

◆ _init() [1/2]

ADODB_Session::_init ( )

Definition at line 444 of file adodb-session.php.

Referenced by gc().

◆ _init() [2/2]

static ADODB_Session::_init ( )
static

Definition at line 466 of file adodb-session2.php.

◆ _sessionKey() [1/2]

ADODB_Session::_sessionKey ( )

Definition at line 459 of file adodb-session.php.

References encryptionKey().

Referenced by read(), and write().

◆ _sessionKey() [2/2]

static ADODB_Session::_sessionKey ( )
static

Definition at line 481 of file adodb-session2.php.

References encryptionKey().

◆ clob() [1/2]

ADODB_Session::clob (   $clob = null)

Definition at line 364 of file adodb-session.php.

References $GLOBALS.

Referenced by config(), and write().

◆ clob() [2/2]

static ADODB_Session::clob (   $clob = null)
static

Definition at line 391 of file adodb-session2.php.

References $GLOBALS.

◆ close() [1/2]

ADODB_Session::close ( )

Close the connection

Definition at line 573 of file adodb-session.php.

◆ close() [2/2]

static ADODB_Session::close ( )
static

Close the connection

Definition at line 601 of file adodb-session2.php.

◆ config() [1/2]

ADODB_Session::config (   $driver,
  $host,
  $user,
  $password,
  $database = false,
  $options = false 
)

Definition at line 498 of file adodb-session.php.

References $database, $driver, $host, clob(), database(), debug(), driver(), host(), password(), table(), and user().

◆ config() [2/2]

static ADODB_Session::config (   $driver,
  $host,
  $user,
  $password,
  $database = false,
  $options = false 
)
static

Definition at line 522 of file adodb-session2.php.

References $database, $driver, $host, clob(), database(), debug(), driver(), host(), password(), table(), and user().

◆ database() [1/2]

ADODB_Session::database (   $database = null)

Definition at line 205 of file adodb-session.php.

References $database, and $GLOBALS.

Referenced by config(), and open().

◆ database() [2/2]

static ADODB_Session::database (   $database = null)
static

Definition at line 238 of file adodb-session2.php.

References $database, and $GLOBALS.

◆ dataFieldName() [1/2]

ADODB_Session::dataFieldName (   $data_field_name = null)

Definition at line 383 of file adodb-session.php.

Referenced by read(), and write().

◆ dataFieldName() [2/2]

static ADODB_Session::dataFieldName (   $data_field_name = null)
static

Definition at line 410 of file adodb-session2.php.

◆ debug() [1/2]

ADODB_Session::debug (   $debug = null)

Definition at line 264 of file adodb-session.php.

References $conn, $GLOBALS, and _conn().

Referenced by _dumprs(), config(), destroy(), gc(), open(), and write().

◆ debug() [2/2]

static ADODB_Session::debug (   $debug = null)
static

Definition at line 298 of file adodb-session2.php.

References $conn, $GLOBALS, and _conn().

◆ destroy() [1/2]

ADODB_Session::destroy (   $key)

Definition at line 771 of file adodb-session.php.

References $conn, $rs, $sql, _conn(), _dumprs(), expireNotify(), and table().

◆ destroy() [2/2]

static ADODB_Session::destroy (   $key)
static

Definition at line 797 of file adodb-session2.php.

References $conn, $rs, $sql, _conn(), _dumprs(), debug(), expireNotify(), and table().

◆ driver() [1/2]

ADODB_Session::driver (   $driver = null)

Definition at line 129 of file adodb-session.php.

References $driver, and $GLOBALS.

Referenced by config(), gc(), open(), and write().

◆ driver() [2/2]

static ADODB_Session::driver (   $driver = null)
static

Definition at line 159 of file adodb-session2.php.

References $driver, and $GLOBALS.

◆ encryptionKey() [1/2]

ADODB_Session::encryptionKey (   $encryption_key = null)

Definition at line 410 of file adodb-session.php.

Referenced by _sessionKey().

◆ encryptionKey() [2/2]

static ADODB_Session::encryptionKey (   $encryption_key = null)
static

Definition at line 432 of file adodb-session2.php.

◆ expireNotify() [1/2]

ADODB_Session::expireNotify (   $expire_notify = null)

Definition at line 288 of file adodb-session.php.

References $GLOBALS.

Referenced by destroy(), gc(), and write().

◆ expireNotify() [2/2]

static ADODB_Session::expireNotify (   $expire_notify = null)
static

Definition at line 323 of file adodb-session2.php.

References $GLOBALS.

◆ filter() [1/2]

ADODB_Session::filter (   $filter = null)

Definition at line 395 of file adodb-session.php.

Referenced by read(), and write().

◆ filter() [2/2]

static ADODB_Session::filter (   $filter = null)
static

Definition at line 417 of file adodb-session2.php.

◆ gc() [1/2]

ADODB_Session::gc (   $maxlifetime)

◆ gc() [2/2]

static ADODB_Session::gc (   $maxlifetime)
static

◆ host() [1/2]

ADODB_Session::host (   $host = null)

Definition at line 148 of file adodb-session.php.

References $GLOBALS, and $host.

Referenced by config(), and open().

◆ host() [2/2]

static ADODB_Session::host (   $host = null)
static

Definition at line 179 of file adodb-session2.php.

References $GLOBALS, and $host.

◆ lifetime() [1/2]

ADODB_Session::lifetime (   $lifetime = null)

Definition at line 237 of file adodb-session.php.

References $GLOBALS.

Referenced by write().

◆ lifetime() [2/2]

static ADODB_Session::lifetime (   $lifetime = null)
static

Definition at line 270 of file adodb-session2.php.

References $GLOBALS.

◆ open() [1/2]

ADODB_Session::open (   $save_path,
  $session_name,
  $persist = null 
)

Create the connection to the database.

If $conn already exists, reuse that connection

Definition at line 518 of file adodb-session.php.

References $conn, $database, $driver, $GLOBALS, $host, _conn(), database(), debug(), driver(), host(), password(), persist(), and user().

Referenced by adodb_sess_open().

◆ open() [2/2]

static ADODB_Session::open (   $save_path,
  $session_name,
  $persist = null 
)
static

Create the connection to the database.

If $conn already exists, reuse that connection

Definition at line 542 of file adodb-session2.php.

References $conn, $database, $driver, $GLOBALS, $host, _conn(), database(), debug(), driver(), host(), password(), persist(), and user().

◆ optimize() [1/2]

ADODB_Session::optimize (   $optimize = null)

Definition at line 326 of file adodb-session.php.

Referenced by gc().

◆ optimize() [2/2]

static ADODB_Session::optimize (   $optimize = null)
static

Definition at line 363 of file adodb-session2.php.

◆ password() [1/2]

ADODB_Session::password (   $password = null)

Definition at line 186 of file adodb-session.php.

References $GLOBALS.

Referenced by config(), and open().

◆ password() [2/2]

static ADODB_Session::password (   $password = null)
static

Definition at line 218 of file adodb-session2.php.

References $GLOBALS.

◆ persist() [1/2]

ADODB_Session::persist (   $persist = null)

Definition at line 224 of file adodb-session.php.

Referenced by open().

◆ persist() [2/2]

static ADODB_Session::persist (   $persist = null)
static

Definition at line 257 of file adodb-session2.php.

◆ read() [1/2]

ADODB_Session::read (   $key)

Definition at line 585 of file adodb-session.php.

References $conn, $rs, $sql, _conn(), _crc(), _sessionKey(), dataFieldName(), filter(), and table().

◆ read() [2/2]

static ADODB_Session::read (   $key)
static

Definition at line 613 of file adodb-session2.php.

References $conn, $rs, $sql, _conn(), _crc(), _sessionKey(), filter(), and table().

◆ syncSeconds() [1/2]

ADODB_Session::syncSeconds (   $sync_seconds = null)

Definition at line 345 of file adodb-session.php.

Referenced by gc().

◆ syncSeconds() [2/2]

static ADODB_Session::syncSeconds (   $sync_seconds = null)
static

Definition at line 383 of file adodb-session2.php.

◆ table() [1/2]

ADODB_Session::table (   $table = null)

Definition at line 307 of file adodb-session.php.

References $GLOBALS.

Referenced by adodb_session_regenerate_id(), config(), destroy(), gc(), read(), and write().

◆ table() [2/2]

static ADODB_Session::table (   $table = null)
static

Definition at line 343 of file adodb-session2.php.

References $GLOBALS.

◆ user() [1/2]

ADODB_Session::user (   $user = null)

Definition at line 167 of file adodb-session.php.

References $GLOBALS.

Referenced by config(), and open().

◆ user() [2/2]

static ADODB_Session::user (   $user = null)
static

Definition at line 198 of file adodb-session2.php.

References $GLOBALS.

◆ write() [1/2]

ADODB_Session::write (   $key,
  $val 
)

Write the serialized data to a database.

If the data has not been modified since the last read(), we do not write.

Definition at line 639 of file adodb-session.php.

References $conn, $driver, $rs, $sql, _conn(), _crc(), _dumprs(), _sessionKey(), clob(), dataFieldName(), debug(), driver(), expireNotify(), filter(), lifetime(), and table().

◆ write() [2/2]

static ADODB_Session::write (   $key,
  $oval 
)
static

Write the serialized data to a database.

If the data has not been modified since the last read(), we do not write.

Definition at line 667 of file adodb-session2.php.

References $conn, $driver, $rs, $sql, _conn(), _crc(), _dumprs(), _sessionKey(), clob(), debug(), driver(), expireNotify(), filter(), lifetime(), and table().