當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Filter_Compress_CompressAbstract類代碼示例

本文整理匯總了PHP中Zend_Filter_Compress_CompressAbstract的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Filter_Compress_CompressAbstract類的具體用法?PHP Zend_Filter_Compress_CompressAbstract怎麽用?PHP Zend_Filter_Compress_CompressAbstract使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Zend_Filter_Compress_CompressAbstract類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Class constructor
  *
  * @param array|Zend_Config|null $options (Optional) Options to set
  */
 public function __construct($options = null)
 {
     if (!extension_loaded('zlib')) {
         throw new Zend_Filter_Exception('This filter needs the zlib extension');
     }
     parent::__construct($options);
 }
開發者ID:trigoesrodrigo,項目名稱:icingaweb2,代碼行數:12,代碼來源:Gz.php

示例2: __construct

 /**
  * Class constructor
  *
  * @param string|array $options (Optional) Options to set
  */
 public function __construct($options = null)
 {
     if (!extension_loaded('zip')) {
         //require_once 'Zend/Filter/Exception.php';
         throw new Zend_Filter_Exception('This filter needs the zip extension');
     }
     parent::__construct($options);
 }
開發者ID:tenstone,項目名稱:wecenter,代碼行數:13,代碼來源:Zip.php

示例3: __construct

 /**
  * Class constructor
  *
  * @param array $options (Optional) Options to set
  */
 public function __construct($options = null)
 {
     if (!extension_loaded('rar')) {
         require_once PHP_LIBRARY_PATH . 'Zend/Filter/Exception.php';
         throw new Zend_Filter_Exception('This filter needs the rar extension');
     }
     parent::__construct($options);
 }
開發者ID:netixx,項目名稱:Stock,代碼行數:13,代碼來源:Rar.php

示例4: __construct

 /**
  * Class constructor
  *
  * @param array|Zend_Config $options (Optional) Options to set
  */
 public function __construct($options = null)
 {
     if (!extension_loaded('bz2')) {
         //$1 'Zend/Filter/Exception.php';
         throw new Zend_Filter_Exception('This filter needs the bz2 extension');
     }
     parent::__construct($options);
 }
開發者ID:netconstructor,項目名稱:Centurion,代碼行數:13,代碼來源:Bz2.php

示例5: __construct

 /**
  * Class constructor
  *
  * @param array|Zend_Config|null $options (Optional) Options to set
  */
 public function __construct($options = null)
 {
     if (!extension_loaded('zlib')) {
         require_once LIB_DIR . '/Zend/Filter/Exception.php';
         throw new Zend_Filter_Exception('This filter needs the zlib extension');
     }
     parent::__construct($options);
 }
開發者ID:Kliwer,項目名稱:lms,代碼行數:13,代碼來源:Gz.php

示例6: __construct

 /**
  * 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 (Zend_Exception $e) {
             throw new Zend_Filter_Exception('This filter needs PEARs Archive_Tar', 0, $e);
         }
     }
     parent::__construct($options);
 }
開發者ID:kobmaki,項目名稱:icingaweb2,代碼行數:16,代碼來源:Tar.php

示例7: __construct

 /**
  * Class constructor
  *
  * @param array $options (Optional) Options to set
  */
 public function __construct($options = null)
 {
     if (!class_exists('Archive_Tar')) {
         require_once LIB_DIR . '/Zend/Loader.php';
         try {
             Zend_Loader::loadClass('Archive_Tar');
         } catch (Zend_Exception $e) {
             require_once LIB_DIR . '/Zend/Filter/Exception.php';
             throw new Zend_Filter_Exception('This filter needs PEARs Archive_Tar', 0, $e);
         }
     }
     parent::__construct($options);
 }
開發者ID:Kliwer,項目名稱:lms,代碼行數:18,代碼來源:Tar.php


注:本文中的Zend_Filter_Compress_CompressAbstract類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。