Source for file Store.php
Documentation is available at Store.php
* @author Bill Shupp <hostmaster@shupp.org>
* @copyright 2009 Bill Shupp
* @license http://www.opensource.org/licenses/bsd-license.php FreeBSD
* @link http://pearopenid.googlecode.com
require_once 'OpenID/Store/Exception.php';
* Provides a factory for creating storage classes.
* @author Bill Shupp <hostmaster@shupp.org>
* @copyright 2009 Bill Shupp
* @license http://www.opensource.org/licenses/bsd-license.php FreeBSD
* @link http://pearopenid.googlecode.com
* Creates an instance of a storage driver
* @param string $driver Driver name
* @param array $options Any options the driver needs
static public function factory($driver =
'CacheLite', array $options =
array())
$file =
'OpenID/Store/' .
str_replace('_', '/', $driver .
'.php');
$class =
'OpenID_Store_' .
$driver;
'Invalid storage driver: ' .
$driver
$instance =
new $class($options);
$class .
' does not implement OpenID_Store_Interface'
return new $class($options);
Documentation generated on Tue, 15 Dec 2009 19:01:00 -0800 by phpDocumentor 1.4.3