ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct (protected ZipOptions $options,... $streams) | |
get () | |
destroy () | |
Explicitly close the zip file and remove the file from the filesystem. More... | |
addPath (string $path, ?string $path_inside_zip=null) | |
addStream (FileStream $stream, string $path_inside_zip) | |
Data Fields | |
const | DOT_EMPTY = '.empty' |
Protected Attributes | |
ZipArchive | $zip |
Private Member Functions | |
buildTempPath () | |
registerShutdownFunction (\Closure $c) | |
storeZIPtoFilesystem () | |
Private Attributes | |
string | $zip_output_file = '' |
int | $iteration_limit |
int | $store_counter = 1 |
int | $path_counter = 1 |
array | $streams |
ILIAS\Filesystem\Util\Archive\Zip::__construct | ( | protected ZipOptions | $options, |
$streams | |||
) |
Definition at line 46 of file Zip.php.
References ILIAS\Filesystem\Util\Archive\Zip\buildTempPath(), ILIAS\Filesystem\Util\Archive\Zip\destroy(), ILIAS\Filesystem\Util\Archive\ZipOptions\getZipOutputName(), ILIAS\Filesystem\Util\Archive\ZipOptions\getZipOutputPath(), ILIAS\Repository\int(), null, and ILIAS\Filesystem\Util\Archive\Zip\registerShutdownFunction().
ILIAS\Filesystem\Util\Archive\Zip::addPath | ( | string | $path, |
?string | $path_inside_zip = null |
||
) |
it is also usually not necessary to zip whole directories, as a ZIP can be seen as an "on-the-fly" compilation of different streams. However, since ILIAS still relies on zipping entire directories in many places, this method is still offered for the moment.
Definition at line 157 of file Zip.php.
References ILIAS\Filesystem\Util\Archive\Zip\addStream().
Referenced by ILIAS\Filesystem\Util\Archive\Zip\addStream().
ILIAS\Filesystem\Util\Archive\Zip::addStream | ( | FileStream | $stream, |
string | $path_inside_zip | ||
) |
Definition at line 170 of file Zip.php.
References Vendor\Package\$d, ILIAS\Filesystem\Util\Archive\Zip\addPath(), null, and ILIAS\Filesystem\Util\Archive\Zip\storeZIPtoFilesystem().
Referenced by ILIAS\Filesystem\Util\Archive\Zip\addPath().
|
private |
Definition at line 78 of file Zip.php.
References CLIENT_DATA_DIR.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct().
ILIAS\Filesystem\Util\Archive\Zip::destroy | ( | ) |
Explicitly close the zip file and remove the file from the filesystem.
In general, temp files are deleted whyle destroying the object. but in cases like migrations, you should call this method explicitly. Please note that also explicitly set paths (non-temp) are deleted if you call this method.
Definition at line 144 of file Zip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct().
ILIAS\Filesystem\Util\Archive\Zip::get | ( | ) |
Definition at line 130 of file Zip.php.
References ILIAS\Filesystem\Util\Archive\Zip\storeZIPtoFilesystem().
|
private |
Definition at line 92 of file Zip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct().
|
private |
Definition at line 97 of file Zip.php.
References $path.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\addStream(), and ILIAS\Filesystem\Util\Archive\Zip\get().
|
private |
|
private |
|
private |
|
private |
const ILIAS\Filesystem\Util\Archive\Zip::DOT_EMPTY = '.empty' |
Definition at line 34 of file Zip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Archives\zip().