TYPO3 CMS  TYPO3_6-2
Auth_OpenID_MDB2Store Class Reference
Inheritance diagram for Auth_OpenID_MDB2Store:
Auth_OpenID_OpenIDStore

Public Member Functions

 Auth_OpenID_MDB2Store ($connection, $associations_table=null, $nonces_table=null)
 
 tableExists ($table_name)
 
 createTables ()
 
 create_nonce_table ()
 
 create_assoc_table ()
 
 storeAssociation ($server_url, $association)
 
 cleanupNonces ()
 
 cleanupAssociations ()
 
 getAssociation ($server_url, $handle=null)
 
 removeAssociation ($server_url, $handle)
 
 useNonce ($server_url, $timestamp, $salt)
 
 reset ()
 
- Public Member Functions inherited from Auth_OpenID_OpenIDStore
 storeAssociation ($server_url, $association)
 
 cleanupNonces ()
 
 cleanupAssociations ()
 
 cleanup ()
 
 supportsCleanup ()
 
 getAssociation ($server_url, $handle=null)
 
 removeAssociation ($server_url, $handle)
 
 useNonce ($server_url, $timestamp, $salt)
 
 reset ()
 

Detailed Description

Definition at line 46 of file MDB2Store.php.

Member Function Documentation

◆ Auth_OpenID_MDB2Store()

Auth_OpenID_MDB2Store::Auth_OpenID_MDB2Store (   $connection,
  $associations_table = null,
  $nonces_table = null 
)

This creates a new MDB2Store instance. It requires an established database connection be given to it, and it allows overriding the default table names.

Parameters
connection$connectionThis must be an established connection to a database of the correct type for the SQLStore subclass you're using. This must be a PEAR::MDB2 connection handle.
associations_tableThis is an optional parameter to specify the name of the table used for storing associations. The default value is 'oid_associations'.
nonces_tableThis is an optional parameter to specify the name of the table used for storing nonces. The default value is 'oid_nonces'.

Definition at line 65 of file MDB2Store.php.

References E_USER_ERROR.

◆ cleanupAssociations()

Auth_OpenID_MDB2Store::cleanupAssociations ( )

Definition at line 311 of file MDB2Store.php.

◆ cleanupNonces()

Auth_OpenID_MDB2Store::cleanupNonces ( )

Definition at line 301 of file MDB2Store.php.

References $Auth_OpenID_SKEW.

◆ create_assoc_table()

Auth_OpenID_MDB2Store::create_assoc_table ( )

Definition at line 192 of file MDB2Store.php.

References tableExists().

Referenced by createTables().

◆ create_nonce_table()

Auth_OpenID_MDB2Store::create_nonce_table ( )

Definition at line 122 of file MDB2Store.php.

References tableExists().

Referenced by createTables().

◆ createTables()

Auth_OpenID_MDB2Store::createTables ( )

Definition at line 111 of file MDB2Store.php.

References create_assoc_table(), and create_nonce_table().

◆ getAssociation()

Auth_OpenID_MDB2Store::getAssociation (   $server_url,
  $handle = null 
)

Definition at line 318 of file MDB2Store.php.

References $sql.

◆ removeAssociation()

Auth_OpenID_MDB2Store::removeAssociation (   $server_url,
  $handle 
)

Definition at line 357 of file MDB2Store.php.

◆ reset()

Auth_OpenID_MDB2Store::reset ( )

Resets the store by removing all records from the store's tables.

Definition at line 402 of file MDB2Store.php.

◆ storeAssociation()

Auth_OpenID_MDB2Store::storeAssociation (   $server_url,
  $association 
)

Definition at line 270 of file MDB2Store.php.

◆ tableExists()

Auth_OpenID_MDB2Store::tableExists (   $table_name)

Definition at line 104 of file MDB2Store.php.

Referenced by create_assoc_table(), and create_nonce_table().

◆ useNonce()

Auth_OpenID_MDB2Store::useNonce (   $server_url,
  $timestamp,
  $salt 
)

Definition at line 370 of file MDB2Store.php.

References $Auth_OpenID_SKEW.