Compression adapter for zip
Class constructor
| Parameters: | null|array|Traversable – (Optional) Options to set |
|---|---|
| Throws ExceptionExtensionNotLoadedException: | |
| if zip extension not loaded | |
Sets the archive to use for de-/compression
| Parameters: | string – Archive to use |
|---|---|
| Return type: | Zip |
Sets the target to use
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | Zip |
Compresses the given content
| Parameters: | string – |
|---|---|
| Return type: | string Compressed archive |
| Throws : | ExceptionRuntimeException if unable to open zip archive, or error during compression |
Decompresses the given content
| Parameters: | string – |
|---|---|
| Return type: | string |
| Throws : | ExceptionRuntimeException If archive file not found, target directory not found, or error during decompression |