\Luxor_Driver

Luxor_Driver:: defines an API for implementing storage backends for Luxor.

Summary

Methods
Properties
Constants
factory()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

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.