Compresses a given string

category Zend
package Zend_Filter

 Methods

Calls adapter methods

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

Parameters

$method

string

Method to call

$options

stringarray

Options for this method

Exceptions

\Zend\Filter\Exception\BadMethodCallException

Returns

mixed

Class constructor

__construct(string | array | \Traversable $options) 

Parameters

$options

stringarray\Traversable

(Optional) Options to set

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to filter()

inherited_from \Zend\Filter\AbstractFilter::__invoke()

Parameters

$value

mixed

Exceptions

\Zend\Filter\Exception\ExceptionInterface If filtering $value is impossible

Returns

mixed

Defined by Zend_Filter_Filter

filter(string $value) : string

Compresses the content $value with the defined settings

Parameters

$value

string

Content to compress

Exceptions

\Zend\Filter\Exception\RuntimeException If filtering $value is impossible

Returns

stringThe compressed content

Retrieve adapter name

getAdapterName() : string

Returns

string

Retrieve adapter options

getAdapterOptions() : array

Returns

array

Get individual or all options from underlying adapter

getOptions(null | string $option) : mixed

Parameters

$option

nullstring

Returns

mixed

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::hasPcreUnicodeSupport()

Returns

bool

Set adapter options

setAdapterOptions(array $options) : \Zend\Filter\Compress

Parameters

$options

array

Returns

Set filter setate

setOptions(array $options) : \Zend\Filter\Compress

Parameters

$options

array

Exceptions

\Zend\Filter\Exception\InvalidArgumentException if options is not an array or Traversable

Returns

isOptions()

isOptions(mixed $options) : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::isOptions()

Parameters

$options

mixed

Returns

bool

 Properties

 

Compression adapter

$adapter 

 

Compression adapter constructor options

$adapterOptions 

 

Is PCRE is compiled with UTF-8 and Unicode support

$hasPcreUnicodeSupport : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::$$hasPcreUnicodeSupport
 

Filter options

$options : array
Inherited

inherited_from \Zend\Filter\AbstractFilter::$$options