Example #1
0
 /**
  * Class constructor
  *
  * @param array $options (Optional) Options to set
  */
 public function __construct($options = null)
 {
     if (!extension_loaded('rar')) {
         require_once IFW_PSN_LIB_ROOT . 'IfwPsn/Vendor/Zend/Filter/Exception.php';
         throw new IfwPsn_Vendor_Zend_Filter_Exception('This filter needs the rar extension');
     }
     parent::__construct($options);
 }
Example #2
0
 /**
  * Class constructor
  *
  * @param array $options (Optional) Options to set
  */
 public function __construct($options = null)
 {
     if (!class_exists('Archive_Tar')) {
         require_once IFW_PSN_LIB_ROOT . 'IfwPsn/Zend/Loader.php';
         try {
             IfwPsn_Zend_Loader::loadClass('Archive_Tar');
         } catch (IfwPsn_Vendor_Zend_Exception $e) {
             require_once IFW_PSN_LIB_ROOT . 'IfwPsn/Vendor/Zend/Filter/Exception.php';
             throw new IfwPsn_Vendor_Zend_Filter_Exception('This filter needs PEARs Archive_Tar', 0, $e);
         }
     }
     parent::__construct($options);
 }