Class ConnectorFactory

Description

Include this file in your application to use the Connector library.

Normally, there is no need to include any other files from the Connector library. Call the static ConnectorFactory::create() method to get an IConnector instance with an open database connection.

Located in /ConnectorFactory.php (line 52)


	
			
Method Summary
 static IConnector create (string $classname, array $connection, [array $options = array()])
Methods
static create (line 79)

Include and create an instance of the selected IConnector class.

If an IConnector instance with identical classname and connection parameters already exists, the existing instance is returned. If the classname is unknown or an error occurs, null is returend.

IMPORTANT: Only use IConnector constants in the $connection and $options parameters. No native constants are available before this function has completed.

  • return: A new or existing IConnector instance with an open database connection.
  • access: public
static IConnector create (string $classname, array $connection, [array $options = array()])
  • string $classname: The name of the IConnector class to use as a database connector.
  • array $connection: An associated array of connection settings.
  • array $options: An associated array of global options.

Documentation generated on Wed, 03 Jun 2009 12:41:51 +0200 by phpDocumentor 1.4.1