Compression adapter for Rar
Class constructor
Parameters: | array – (Optional) Options to set |
---|---|
Throws ExceptionExtensionNotLoadedException: | |
if rar extension not loaded |
Sets the callback to use
Parameters: | string – |
---|---|
Return type: | Rar |
Throws : | ExceptionInvalidArgumentException if invalid callback provided |
Sets the archive to use for de-/compression
Parameters: | string – Archive to use |
---|---|
Return type: | Rar |
Sets the targetpath to use
Parameters: | string – |
---|---|
Return type: | Rar |
Throws : | ExceptionInvalidArgumentException if specified target directory does not exist |
Compresses the given content
Parameters: | string|array – |
---|---|
Return type: | string |
Throws : | ExceptionRuntimeException if no callback available, or error during compression |
Decompresses the given content
Parameters: | string – |
---|---|
Return type: | bool |
Throws : | ExceptionRuntimeException if archive not found, cannot be opened, or error during decompression |