I've had the need to test a different DBA backend than gdbm, as it wasn't
available in my PHP installation.
All I needed to do is subclass :
class MySimpleOAuthDataStore extends SimpleOAuthDataStore {/*{{{*/
// private $dbh;
function __construct($path = "/tmp/oauth.qdbm") {/*{{{*/
$this->dbh = dba_popen($path, 'n', 'qdbm');
if(! $this->dbh) {
throw new OAuthException("doooom!");
}
...
But this required changing SimpleOAuthDataStore so that $dbh becomes a
protected attribute instead of a private one.
Could this be changed in the lib's code ?
Hope this helps.
Original issue reported on code.google.com by olber...@gmail.com on 5 May 2010 at 12:12
Original issue reported on code.google.com by
olber...@gmail.com
on 5 May 2010 at 12:12