Token tracking implementation for PHP's PEAR database abstraction layer.
Required parameters:
'phptype' The database type (ie. 'pgsql', 'mysql', etc.).
Required by some database implementations:
'database' The name of the database. 'hostspec' The hostname of the database server. 'username' The username with which to connect to the database. 'password' The password associated with 'username'. 'options' Additional options to pass to the database. 'tty' The TTY on which to connect to the database. 'port' The port on which to connect to the database.
Optional parameters:
'table' The name of the tokens table in 'database'. Defaults to 'horde_tokens'. 'timeout' The period (in seconds) after which an id is purged. Defaults to 86400 (i.e. 24 hours).
Optional values when using separate reading and writing servers, for example in replication settings:
'splitread' Boolean, whether to implement the separation or not. 'read' Array containing the parameters which are different for the read database connection, currently supported only 'hostspec' and 'port' parameters.
The table structure for the tokens is as follows:
CREATE TABLE horde_tokens ( token_address VARCHAR(100) NOT NULL, token_id VARCHAR(32) NOT NULL, token_timestamp BIGINT NOT NULL, PRIMARY KEY (token_address, token_id) );
$Horde: framework/Token/Token/sql.php,v 1.23.6.17 2009/02/13 05:45:19 chuck Exp $
Copyright 1999-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Class | Description |
---|---|
![]() |
Token tracking implementation for PHP's PEAR database abstraction layer. |
Documentation generated on Sun, 30 Jan 2011 05:21:53 +0000 by phpDocumentor 1.4.3