factory()
factory( $source, string $driver = null, array $params = null) : mixed
Attempts to return a concrete Luxor_Driver instance based on $driver.
Parameters
$source | ||
string | $driver | The type of concrete Luxor_Driver subclass to return. The is based on the storage driver ($driver). The code is dynamically included. |
array | $params | (optional) A hash containing any additional configuration or connection parameters a subclass might need. |
Returns
mixed —The newly created concrete Luxor_Driver instance, or false on an error.