|
ILIAS
release_4-4 Revision
|
Inheritance diagram for Auth_OpenID_MDB2Store:
Collaboration diagram for Auth_OpenID_MDB2Store:Public Member Functions | |
| Auth_OpenID_MDB2Store ($connection, $associations_table=null, $nonces_table=null) | |
| This creates a new MDB2Store instance. More... | |
| 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 () | |
| Resets the store by removing all records from the store's tables. More... | |
Public Member Functions inherited from Auth_OpenID_OpenIDStore | |
| storeAssociation ($server_url, $association) | |
| This method puts an Association object into storage, retrievable by server URL and handle. More... | |
| cleanupNonces () | |
| cleanupAssociations () | |
| cleanup () | |
| supportsCleanup () | |
| Report whether this storage supports cleanup. More... | |
| getAssociation ($server_url, $handle=null) | |
| This method returns an Association object from storage that matches the server URL and, if specified, handle. More... | |
| removeAssociation ($server_url, $handle) | |
| This method removes the matching association if it's found, and returns whether the association was removed or not. More... | |
| useNonce ($server_url, $timestamp, $salt) | |
| Called when using a nonce. More... | |
| reset () | |
| Removes all entries from the store; implementation is optional. More... | |
Definition at line 46 of file MDB2Store.php.
| 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.
| connection | $connection | This 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_table | This is an optional parameter to specify the name of the table used for storing associations. The default value is 'oid_associations'. | |
| nonces_table | This 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 PEAR\isError(), and MDB2_FETCHMODE_ASSOC.
Here is the call graph for this function:| Auth_OpenID_MDB2Store::cleanupAssociations | ( | ) |
Definition at line 311 of file MDB2Store.php.
| Auth_OpenID_MDB2Store::cleanupNonces | ( | ) |
| Auth_OpenID_MDB2Store::create_assoc_table | ( | ) |
Definition at line 192 of file MDB2Store.php.
References $options, $r, PEAR\isError(), and tableExists().
Referenced by createTables().
Here is the call graph for this function:
Here is the caller graph for this function:| Auth_OpenID_MDB2Store::create_nonce_table | ( | ) |
Definition at line 122 of file MDB2Store.php.
References $r, PEAR\isError(), and tableExists().
Referenced by createTables().
Here is the call graph for this function:
Here is the caller graph for this function:| Auth_OpenID_MDB2Store::createTables | ( | ) |
Definition at line 111 of file MDB2Store.php.
References $n, create_assoc_table(), and create_nonce_table().
Here is the call graph for this function:| Auth_OpenID_MDB2Store::getAssociation | ( | $server_url, | |
$handle = null |
|||
| ) |
Definition at line 318 of file MDB2Store.php.
References PEAR\isError().
Here is the call graph for this function:| Auth_OpenID_MDB2Store::removeAssociation | ( | $server_url, | |
| $handle | |||
| ) |
Definition at line 357 of file MDB2Store.php.
References $r, and PEAR\isError().
Here is the call graph for this function:| Auth_OpenID_MDB2Store::reset | ( | ) |
Resets the store by removing all records from the store's tables.
Definition at line 402 of file MDB2Store.php.
| Auth_OpenID_MDB2Store::storeAssociation | ( | $server_url, | |
| $association | |||
| ) |
Definition at line 270 of file MDB2Store.php.
References PEAR\isError().
Here is the call graph for this function:| Auth_OpenID_MDB2Store::tableExists | ( | $table_name | ) |
Definition at line 104 of file MDB2Store.php.
References PEAR\isError().
Referenced by create_assoc_table(), and create_nonce_table().
Here is the call graph for this function:
Here is the caller graph for this function:| Auth_OpenID_MDB2Store::useNonce | ( | $server_url, | |
| $timestamp, | |||
| $salt | |||
| ) |
Definition at line 370 of file MDB2Store.php.
References $Auth_OpenID_SKEW, $r, $timestamp, PEAR\isError(), and MDB2_AUTOQUERY_INSERT.
Here is the call graph for this function: