Zymba Documentation
ZIP.Archive
object @ZIP.Archive(@Base) {
COMPRESS_DEFAULT;
COMPRESS_STORE;
COMPRESS_SHRINK;
COMPRESS_REDUCE1;
COMPRESS_REDUCE2;
COMPRESS_REDUCE3;
COMPRESS_REDUCE4;
COMPRESS_IMPLODE;
COMPRESS_DEFLATE;
COMPRESS_DEFLATE64;
COMPRESS_PKWARE;
COMPRESS_BZIP2;
COMPRESS_LZMA;
COMPRESS_TERSE;
COMPRESS_LZ77;
COMPRESS_LZMA;
COMPRESS_ZSTD;
COMPRESS_MP3;
COMPRESS_XZ;
COMPRESS_JPEG;
COMPRESS_WAVPACK;
COMPRESS_PPMD;
ENCRYPT_NONE;
ENCRYPT_PKWARE;
ENCRYPT_AES128;
ENCRYPT_AES128;
ENCRYPT_AES128;
ENCRYPT_UNKNOWN;
MODE_READ;
MODE_WRITE;
MODE_CREATE;
MODE_TRUNCATE;
MODE_OVERWRITE;
construct(string $path, int $mode) {}
addDirectory(string $path, string $prefix): $this {}
addFile(string $path, string $name): $this {}
close() {}
countEntries(): int {}
crc32(string $name): int {}
createDirectory(string $name): $this {}
delete(string $name): $this {}
exists(string $name): bool {}
exit(mixed $exception) {}
extract(object $entries, string $path): $this {}
extractAll(string $path): $this {}
getComment(string $name): string {}
getCompression(string $name): int {}
getLastModified(string $name): int {}
getSize(string $name): int {}
getSizeRaw(string $name): int {}
listEntries(): object {}
move(string $name, string $target): $this {}
read(string $name, ?int $length): string {}
readRaw(string $name): string {}
restore(string $name): $this {}
rollback(): $this {}
selectStream(string $name): object {}
setComment(string $name, string $comment): $this {}
setCompression(string $name, int $method, int $flags): $this {}
setEncryption(string $name, int $method, ?string $password): $this {}
setLastModified(string $name, ?int $timestamp): $this {}
setPassword(string $password): $this {}
write(string $name, string $string): $this {}
}
ZIP archive prototype.