Calls MDB2::factory(). Connections are lazy loaded upon queries.
void
__construct
( $options)
-
array
$options: Array of options to pass to MDB2::factory(). Note that you must also include the key 'dsn', which is used as the first argument to MDB2::factory(), and is not passed with the options argument.
Deletes a nonce from the SQL server
-
string
$nonce: The nonce value
-
string
$opURL: The OP Endpoint URL it is associated with
Implementation of:
- OpenID_Store_Interface::deleteNonce()
- Deletes a nonce from storage
Gets an association from the SQL server
-
string
$uri: The OP Endpoint URL
-
string
$handle: The association handle if available
Implementation of:
- OpenID_Store_Interface::getAssociation()
- Gets an OpenID_Assocation instance from storage
Gets an instance of OpenID_Discover from the SQL server if it exists.
false
getDiscover
(string $identifier)
-
string
$identifier: The user supplied identifier
Implementation of:
- OpenID_Store_Interface::getDiscover()
- Gets an OpenID_Discover object from storage
Gets a nonce from the SQL server if it exists
string
getNonce
(string $nonce, string $opURL)
-
string
$nonce: The nonce to retrieve
-
string
$opURL: The OP Endpoint URL that it is associated with
Implementation of:
- OpenID_Store_Interface::getNonce()
- Gets a nonce from storage
A shortcut to handle the error checking of prepare()/execute() in one place.
MDB2_Result
prepareExecute
(string $sql, $args)
-
string
$sql: The SQL to prepare
-
array
$args: The corresponding arguments
Sets an association in the SQL server
Implementation of:
- OpenID_Store_Interface::setAssociation()
- Stores an OpenID_Association instance. Details (such as endpoint url and exiration) are retrieved from the object itself.
Adds discoverd infomation to the SQL server
-
OpenID_Discover
$discover: The OpenID_Discover instance
-
int
$expire: The time (in seconds) that the cached object should live
Implementation of:
- OpenID_Store_Interface::setDiscover()
- Stores an instance of OpenID_Discover
Sets a nonce in the SQL server
-
string
$nonce: The nonce value to set
-
string
$opURL: The OP Endpoint URL it is associated with
Implementation of:
- OpenID_Store_Interface::setNonce()
- Stores a nonce for an OP endpoint URL