686. Class

686.1. Zend\Filter\Compress

Compresses a given string

686.1.1. Methods

686.1.1.1. __construct

__construct()

Class constructor

Parameters:string|array|Traversable – (Optional) Options to set

686.1.1.2. setOptions

setOptions()

Set filter setate

Parameters:array
Throws ExceptionInvalidArgumentException:
 if options is not an array or Traversable
Return type:Compress

686.1.1.3. getAdapter

getAdapter()

Returns the current adapter, instantiating it if necessary

Return type:CompressCompressionAlgorithmInterface

686.1.1.4. getAdapterName

getAdapterName()

Retrieve adapter name

Return type:string

686.1.1.5. setAdapter

setAdapter()

Sets compression adapter

Parameters:string|CompressCompressionAlgorithmInterface – Adapter to use
Return type:Compress
Throws :ExceptionInvalidArgumentException

686.1.1.6. getAdapterOptions

getAdapterOptions()

Retrieve adapter options

Return type:array

686.1.1.7. setAdapterOptions

setAdapterOptions()

Set adapter options

Parameters:array
Return type:Compress

686.1.1.8. getOptions

getOptions()

Get individual or all options from underlying adapter

Parameters:null|string
Return type:mixed

686.1.1.9. __call

__call()

Calls adapter methods

Parameters:
  • string – Method to call
  • string|array – Options for this method
Return type:

mixed

Throws :

ExceptionBadMethodCallException

686.1.1.10. filter

filter()

Defined by Zend_Filter_Filter

Compresses the content $value with the defined settings

Parameters:string – Content to compress
Return type:string The compressed content