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.