factory()
factory(string $driver = null, array $params = null) : object
Gets a concrete Klutz_Driver instance.
Parameters
string | $driver | The type of concrete Klutz_Driver subclass to return. The code for the driver is dynamically included. |
array | $params | A hash containing any additional configuration or connection parameters a subclass might need |
Returns
object —Klutz_Driver The newly created concrete instance, or false on error.