QuickBooks/Utilities.php
static public function driverFactory($dsn_or_conn, $config = array(), $hooks = array(), $log_level = QUICKBOOKS_LOG_NORMAL)
	{
		return QuickBooks_Driver_Factory::create($dsn_or_conn, $config, $hooks, $log_level);
	}
static public function driverFactory($dsn_or_conn, $config = array(), $hooks = array(), $log_level = QUICKBOOKS_LOG_NORMAL)
	{
		return QuickBooks_Driver_Factory::create($dsn_or_conn, $config, $hooks, $log_level);
	}
Create an instance of a driver class from a DSN connection string *or* a connection resource

You can actually pass in *either* a DSN-style connection string OR an already connected database resource
- mysql://user:pass@localhost:port/database
- $var (Resource ID #XYZ, valid MySQL connection resource)

@param mixed $dsn_or_conn	A DSN-style connection string or a PHP resource
@param array $config			An array of configuration options for the driver
@param array $hooks			An array mapping hooks to user-defined hook functions to call
@param integer $log_level
@return object				A class instance, a child class of QuickBooks_Driver