Methods
Class constructor
__construct(array $options)
Parameters
$options
array
(Optional) Options to set
Exceptions
Compresses the given content
compress(string | array $content) : string
Parameters
$content
stringarray
Exceptions
Returns
string
Decompresses the given content
decompress(string $content) : bool
Parameters
$content
string
Exceptions
Returns
bool
Returns the set archive
getArchive() : string
Returns the set callback for compression
getCallback() : string
Returns one or all set options
getOptions(string $option) : mixed
Inherited
inherited_from |
\Zend\Filter\Compress\AbstractCompressionAlgorithm::getOptions() |
Parameters
$option
string
(Optional) Option to return
Returns
mixed
Returns the set password
getPassword() : string
Returns the set targetpath
getTarget() : string
Sets the archive to use for de-/compression
setArchive(string $archive) : \Zend\Filter\Compress\self
Parameters
$archive
string
Archive to use
Returns
\Zend\Filter\Compress\self
Sets the callback to use
setCallback(string $callback) : \Zend\Filter\Compress\self
Parameters
$callback
string
Exceptions
Returns
\Zend\Filter\Compress\self
Sets all or one option
setOptions(array $options) : \Zend\Filter\Compress\self
Inherited
inherited_from |
\Zend\Filter\Compress\AbstractCompressionAlgorithm::setOptions() |
Parameters
$options
array
Returns
\Zend\Filter\Compress\self
Sets the password to use
setPassword(string $password) : \Zend\Filter\Compress\self
Parameters
$password
string
Returns
\Zend\Filter\Compress\self
Sets the targetpath to use
setTarget(string $target) : \Zend\Filter\Compress\self
Parameters
$target
string
Exceptions
Returns
\Zend\Filter\Compress\self
Returns the adapter name
toString() : string
Properties
Compression Options
array(
'callback' => Callback for compression
'archive' => Archive to use
'password' => Password to use
'target' => Target to write the files to
)
$options : array