factory()
factory(string $driver, array $params = array()) : mixed
Attempts to return a concrete Luxor_Lang instance based on $driver.
Parameters
string | $driver | The type of concrete Luxor_Lang 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_Lang instance, or false on an error.