Static Public Member Functions | |
static | compress ($sources, $destination) |
static | extract ($zipPath, $dest, $merge=true) |
Class for compressing and extracting set of folders/files in zip format
Definition at line 5 of file ZipHelper.php.
|
static |
Recursively zip folder
array | $sources | array of sources. String key means source contains string of content. Otherwise source contains name of file |
string | $destination | zip archive destination folder |
Exception |
Definition at line 17 of file ZipHelper.php.
Referenced by Release\backupProject(), and Release\make().
|
static |
Extract zip archive to folder
string | $zipPath | path to zip archive |
string | $dest | destination folder |
bool | $merge | if false replace destination folder by new folders from archive, otherwise merge folders |
Exception |
Definition at line 95 of file ZipHelper.php.
References FileHelper\rmdirr().
Referenced by Release\update().