Compression adapter for Bz2

package Default
inherited_from \Zend\Filter\Compress\AbstractCompressionAlgorithm

 Methods

Class constructor

__construct(null|array|\Traversable $options = null
inherited_from \Zend\Filter\Compress\AbstractCompressionAlgorithm::__construct()

Parameters

$options

nullarray\Traversable

(Optional) Options to set

Exceptions

\Zend\Filter\Exception\ExtensionNotLoadedException if bz2 extension not loaded

Class constructor

__construct(null|array|\Traversable $options = null
Inherited

Parameters

$options

nullarray\Traversable

(Optional) Options to set

Compresses the given content

compress(string $content) : string

Parameters

$content

string

Exceptions

\Zend\Filter\Exception\RuntimeException

Returns

string

Decompresses the given content

decompress(string $content) : string

Parameters

$content

string

Exceptions

\Zend\Filter\Exception\RuntimeException

Returns

string

Returns the set archive

getArchive() : string

Returns

string

Returns the set blocksize

getBlocksize() : integer

Returns

integer

Returns one or all set options

getOptions(string $option = null) : mixed
Inherited

Parameters

$option

string

(Optional) Option to return

Returns

mixed

Sets the archive to use for de-/compression

setArchive(string $archive) : \Zend\Filter\Compress\Bz2
fluent This method is part of a fluent interface and will return the same instance

Parameters

$archive

string

Archive to use

Returns

\Zend\Filter\Compress\Bz2

Sets a new blocksize

setBlocksize(integer $blocksize) : \Zend\Filter\Compress\Bz2
fluent This method is part of a fluent interface and will return the same instance

Parameters

$blocksize

integer

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\Compress\Bz2

Sets all or one option

setOptions(array $options) : \Zend\Filter\Compress\Bz2
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$options

array

Returns

\Zend\Filter\Compress\Bz2

Returns the adapter name

toString() : string

Returns

string

 Properties

 

Compression Options array( 'blocksize' => Blocksize to use from 0-9 'archive' => Archive to use )

$options : array

Default

array('blocksize' => 4, 'archive' => null)
inherited_from \Zend\Filter\Compress\AbstractCompressionAlgorithm::options
 

$options

$options : array

Default

array()