factory()
factory(string $driver, array $params = null) : \Horde_Compress_Base
Attempts to return a concrete Horde_Compress_Base instance based on $driver.
Parameters
string | $driver | Either a driver name, or the full class name to use (class must extend Horde_Compress_Base). |
array | $params | Hash containing any additional configuration or parameters a subclass needs. |
Throws
- \Horde_Compress_Exception
Returns
\Horde_Compress_Base —The newly created concrete instance.