\Luxor_Files

Luxor_Files:: defines an API to access source file repositories.

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(string  $driver, array  $params = array()) : mixed

Attempts to return a concrete Luxor_Files instance based on $driver.

Parameters

string $driver

The type of concrete Luxor_Files subclass to return. The is based on the repository 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_Files instance, or false on an error.