本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}