/** * Class constructor * * @param array $options (Optional) Options to set */ public function __construct($options = null) { if (!class_exists('Archive_Tar')) { throw new Exception\ExtensionNotLoadedException('This filter needs PEAR\'s Archive_Tar component. ' . 'Ensure loading Archive_Tar (registering autoload or require_once)'); } parent::__construct($options); }
/** * Class constructor * * @param array $options (Optional) Options to set */ public function __construct($options = null) { if (!extension_loaded('rar')) { throw new Exception\ExtensionNotLoadedException('This filter needs the rar extension'); } parent::__construct($options); }
/** * Class constructor * * @param array|\Zend\Config\Config $options (Optional) Options to set */ public function __construct($options = null) { if (!extension_loaded('bz2')) { throw new Exception('This filter needs the bz2 extension'); } parent::__construct($options); }
/** * Class constructor * * @param array $options (Optional) Options to set */ public function __construct($options = null) { if (!class_exists('Archive_Tar')) { try { \Zend\Loader::loadClass('Archive_Tar'); } catch (\Exception $e) { throw new Exception\ExtensionNotLoadedException('This filter needs PEARs Archive_Tar', 0, $e); } } parent::__construct($options); }