Auth_OpenID_GenericConsumer::__construct PHP Method

__construct() public method

This method initializes a new {@link Auth_OpenID_Consumer} instance to access the library.
public __construct ( Auth_OpenID_OpenIDStore $store )
$store Auth_OpenID_OpenIDStore This must be an object that implements the interface in {@link Auth_OpenID_OpenIDStore}. Several concrete implementations are provided, to cover most common use cases. For stores backed by MySQL, PostgreSQL, or SQLite, see the {@link Auth_OpenID_SQLStore} class and its sublcasses. For a filesystem-backed store, see the {@link Auth_OpenID_FileStore} module. As a last resort, if it isn't possible for the server to store state at all, an instance of {@link Auth_OpenID_DumbStore} can be used.
    function __construct($store)
    {
        $this->store = $store;
        $this->negotiator = Auth_OpenID_getDefaultNegotiator();
        $this->_use_assocs = is_null($this->store) ? false : true;
        if (get_class($this->store) == "Auth_OpenID_DumbStore") {
            $this->_use_assocs = false;
        }
        $this->fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
        $this->session_types = Auth_OpenID_getAvailableSessionTypes();
    }