Fully Qualified Name: | Zend\Filter\Compress\Gz |
Extends: | AbstractCompressionAlgorithm |
Compression adapter for Gzip (ZLib)
Name | Description | Defined By |
---|---|---|
__construct() | Class constructor | Gz |
compress() | Compresses the given content | Gz |
decompress() | Decompresses the given content | Gz |
getArchive() | Returns the set archive | Gz |
getLevel() | Returns the set compression level | Gz |
getMode() | Returns the set compression mode | Gz |
getOptions() | Returns one or all set options | AbstractCompressionAlgorithm |
setArchive() | Sets the archive to use for de-/compression | Gz |
setLevel() | Sets a new compression level | Gz |
setMode() | Sets a new compression mode | Gz |
setOptions() | Sets all or one option | AbstractCompressionAlgorithm |
toString() | Returns the adapter name | Gz |
Class constructor
Parameter Name | Type | Description |
---|---|---|
$options | null|array|\Traversable | (Optional) |
Returns:
Compresses the given content
Parameter Name | Type | Description |
---|---|---|
$content | string |
Returns: string
Decompresses the given content
Parameter Name | Type | Description |
---|---|---|
$content | string |
Returns: string
Returns the set archive
Returns: string
Returns the set compression level
Returns: int
Returns the set compression mode
Returns: string
Returns one or all set options
Parameter Name | Type | Description |
---|---|---|
$option | string | (Optional) |
Returns: mixed
Sets the archive to use for de-/compression
Parameter Name | Type | Description |
---|---|---|
$archive | string | Archive |
Returns: self
Sets a new compression level
Parameter Name | Type | Description |
---|---|---|
$level | int |
Returns: self
Sets a new compression mode
Parameter Name | Type | Description |
---|---|---|
$mode | string | Supported |
Returns: self
Sets all or one option
Parameter Name | Type | Description |
---|---|---|
$options | array |
Returns: self
Returns the adapter name
Returns: string