| Fully Qualified Name: | Zend\Filter\Compress\Zip |
| Extends: | AbstractCompressionAlgorithm |
Compression adapter for zip
| Name | Description | Defined By |
|---|---|---|
| __construct() | Class constructor | Zip |
| compress() | Compresses the given content | Zip |
| decompress() | Decompresses the given content | Zip |
| errorString() | Returns the proper string based on the given error constant | Zip |
| getArchive() | Returns the set archive | Zip |
| getOptions() | Returns one or all set options | AbstractCompressionAlgorithm |
| getTarget() | Returns the set targetpath | Zip |
| setArchive() | Sets the archive to use for de-/compression | Zip |
| setOptions() | Sets all or one option | AbstractCompressionAlgorithm |
| setTarget() | Sets the target to use | Zip |
| toString() | Returns the adapter name | Zip |
Class constructor
| Parameter Name | Type | Description |
|---|---|---|
| $options | null|array|\Traversable | (Optional) |
Returns:
Compresses the given content
| Parameter Name | Type | Description |
|---|---|---|
| $content | string |
Returns: string Compressed archive
Decompresses the given content
| Parameter Name | Type | Description |
|---|---|---|
| $content | string |
Returns: string
Returns the proper string based on the given error constant
| Parameter Name | Type | Description |
|---|---|---|
| $error | string |
Returns: string
Returns the set archive
Returns: string
Returns one or all set options
| Parameter Name | Type | Description |
|---|---|---|
| $option | string | (Optional) |
Returns: mixed
Returns the set targetpath
Returns: string
Sets the archive to use for de-/compression
| Parameter Name | Type | Description |
|---|---|---|
| $archive | string | Archive |
Returns: self
Sets all or one option
| Parameter Name | Type | Description |
|---|---|---|
| $options | array |
Returns: self
Sets the target to use
| Parameter Name | Type | Description |
|---|---|---|
| $target | string |
Returns: self
Returns the adapter name
Returns: string