ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (protected ZipOptions $options,... $streams) | |
get () | |
destroy () | |
@description 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\$streams, 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(), and ILIAS\Filesystem\Util\Archive\Zip\registerShutdownFunction().
ILIAS\Filesystem\Util\Archive\Zip::addPath | ( | string | $path, |
?string | $path_inside_zip = null |
||
) |
Definition at line 157 of file Zip.php.
References $path, ILIAS\Filesystem\Util\Archive\Zip\addStream(), and ILIAS\Filesystem\Stream\Streams\ofResource().
ILIAS\Filesystem\Util\Archive\Zip::addStream | ( | FileStream | $stream, |
string | $path_inside_zip | ||
) |
Definition at line 170 of file Zip.php.
References 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 | ( | ) |
@description 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\Stream\Streams\ofResource(), and ILIAS\Filesystem\Util\Archive\Zip\storeZIPtoFilesystem().
|
private |
Definition at line 92 of file Zip.php.
References $c.
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 |
Definition at line 44 of file Zip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct().
|
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().