Compresses a given string

category Zend
package Zend_Filter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Calls adapter methods

__call(string $method, string|array $options) 

Parameters

$method

string

Method to call

$options

stringarray

Options for this method

Class constructor

__construct(string|array $options = null

Parameters

$options

stringarray

(Optional) Options to set

Defined by Zend_Filter_Interface

filter(string $value) : string

Compresses the content $value with the defined settings

inherited_from \Zend_Filter_Interface::filter()

Parameters

$value

string

Content to compress

Returns

stringThe compressed content

Returns the current adapter, instantiating it if necessary

getAdapter() : string

Returns

string

Retrieve adapter name

getAdapterName() : string

Returns

string

Retrieve adapter options

getAdapterOptions() : array

Returns

array

Sets compression adapter

setAdapter(string|\Zend_Filter_Compress_CompressInterface $adapter) : \Zend_Filter_Compress

Parameters

$adapter

string\Zend_Filter_Compress_CompressInterface

Adapter to use

Returns

\Zend_Filter_Compress

Set adapter options

setAdapterOptions(array $options) : void

Parameters

$options

array

Set filter setate

setOptions(array $options) : \Zend_Filter_Compress

Parameters

$options

array

Returns

\Zend_Filter_Compress

 Properties

 

Compression adapter

$_adapter 

Default

'Gz'
 

Compression adapter constructor options

$_adapterOptions 

Default

array()