Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * 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);
 }
Beispiel #3
0
 /**
  * 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);
 }
Beispiel #4
0
 /**
  * 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);
 }