The table names used are determined by the class variables associations_table_name and nonces_table_name. To change the name of the tables used, pass new table names into the constructor. To create the tables with the proper schema, see the createTables method. This class shouldn't be used directly. Use one of its subclasses instead, as those contain the code necessary to use a specific database. If you're an OpenID integrator and you'd like to create an SQL-driven store that wraps an application's database abstraction, be sure to create a subclass of {@link Auth_OpenID_DatabaseConnection} that calls the application's database abstraction calls. Then, pass an instance of your new database connection class to your SQLStore subclass constructor. All methods other than the constructor and createTables should be considered implementation details.
Inheritance: extends Auth_OpenID_OpenIDStore
Example #1
0
 /**
  * @access private
  */
 function _add_nonce($server_url, $timestamp, $salt)
 {
     // PECL SQLite extensions 1.0.3 and older (1.0.3 is the
     // current release at the time of this writing) have a broken
     // sqlite_escape_string function that breaks when passed the
     // empty string. Prefixing all strings with one character
     // keeps them unique and avoids this bug. The nonce table is
     // write-only, so we don't have to worry about updating other
     // functions with this same bad hack.
     return parent::_add_nonce('x' . $server_url, $timestamp, $salt);
 }