Attempts to return a concrete Horde_SyncMl_Backend instance based on $driver.
public factory ( string $driver, array $params = null ) : Horde_SyncMl_Backend | ||
$driver | string | The type of concrete Backend subclass to return. The code is dynamically included from Backend/$driver.php if no path is given or directly with "include_once $driver . '.php'" if a path is included. So make sure this parameter is "safe" and not directly taken from web input. The class in the file must be named 'Horde_SyncMl_Backend_' . basename($driver) and extend Horde_SyncMl_Backend. |
$params | array | A hash containing any additional configuration or connection parameters a subclass might need. |
return | Horde_SyncMl_Backend | The newly created concrete Horde_SyncMl_Backend instance, or false on an error. |