ZipInterface
interface ZipInterface (View source)
comodojo/zip - ZipArchive toolbox
Constants
SKIP_NONE |
|
SKIP_HIDDEN |
|
SKIP_ALL |
|
SKIP_COMODOJO |
|
CM_DEFAULT |
|
CM_STORE |
|
CM_DEFLATE |
|
EM_NONE |
|
EM_AES_128 |
|
EM_AES_192 |
|
EM_AES_256 |
|
Methods
static ZipInterface
open(string $zip_file)
Open a zip archive (static constructor)
static bool
check(string $zip_file)
Check a zip archive (static constructor)
static ZipInterface
create(string $zip_file, bool $overwrite = false)
Create a new zip archive (static constructor)
array
listFiles()
Get the list of files in the archive as an array
bool
extract(string $destination, mixed $files = null)
Extract files from zip archive
add(mixed $file_name_or_array, bool $flatten_root_folder = false, int $compression = self::CM_DEFAULT, int $encryption = self::EM_NONE)
Add files to the ZipArchive
delete(mixed $file_name_or_array)
Delete files from ZipArchive
bool
close()
Close the ZipArchive
Details
static ZipInterface
open(string $zip_file)
Open a zip archive (static constructor)
static bool
check(string $zip_file)
Check a zip archive (static constructor)
static ZipInterface
create(string $zip_file, bool $overwrite = false)
Create a new zip archive (static constructor)
array
listFiles()
Get the list of files in the archive as an array
bool
extract(string $destination, mixed $files = null)
Extract files from zip archive
ZipInterface
add(mixed $file_name_or_array, bool $flatten_root_folder = false, int $compression = self::CM_DEFAULT, int $encryption = self::EM_NONE)
Add files to the ZipArchive
ZipInterface
delete(mixed $file_name_or_array)
Delete files from ZipArchive
bool
close()
Close the ZipArchive