|
ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
|
Collaboration diagram for ILIAS\Filesystem\Util\Archive\Zip:Public Member Functions | |
| __construct (protected ZipOptions $options, FileStream ... $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' |
| const | ITERATION_FACTOR = 0.9 |
Protected Attributes | |
| ZipArchive | $zip |
Private Member Functions | |
| maybeOpenZip (int $flags=0) | |
| buildTempPath () | |
| registerShutdownFunction (\Closure $c) | |
| storeZIPtoFilesystem () | |
Private Attributes | |
| string | $zip_output_file = '' |
| int | $iteration_limit |
| int | $store_counter = 1 |
| int | $path_counter = 1 |
| bool | $zip_opened = false |
| array | $streams = [] |
| ILIAS\Filesystem\Util\Archive\Zip::__construct | ( | protected ZipOptions | $options, |
| FileStream ... | $streams | ||
| ) |
Definition at line 49 of file Zip.php.
References ILIAS\UI\Implementation\Component\Input\Field\$options, ILIAS\Filesystem\Util\Archive\Zip\$streams, ILIAS\Filesystem\Util\Archive\Zip\addStream(), ILIAS\Filesystem\Util\Archive\Zip\buildTempPath(), ILIAS\Filesystem\Util\Archive\Zip\destroy(), ILIAS\Repository\int(), ILIAS\Filesystem\Util\Archive\Zip\maybeOpenZip(), and ILIAS\Filesystem\Util\Archive\Zip\registerShutdownFunction().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Archive\Zip::addPath | ( | string | $path, |
| ?string | $path_inside_zip = null |
||
| ) |
Definition at line 178 of file Zip.php.
References $path, ILIAS\Filesystem\Util\Archive\Zip\addStream(), ILIAS\Filesystem\Util\Archive\Zip\maybeOpenZip(), and ILIAS\Filesystem\Stream\Streams\ofResource().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Archive\Zip::addStream | ( | FileStream | $stream, |
| string | $path_inside_zip | ||
| ) |
Definition at line 193 of file Zip.php.
References ILIAS\Filesystem\Util\Archive\Zip\storeZIPtoFilesystem().
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct(), and ILIAS\Filesystem\Util\Archive\Zip\addPath().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 96 of file Zip.php.
References CLIENT_DATA_DIR.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct().
Here is the caller graph for this function:| 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 165 of file Zip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct().
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Archive\Zip::get | ( | ) |
Definition at line 149 of file Zip.php.
References ILIAS\Filesystem\Util\Archive\Zip\maybeOpenZip(), ILIAS\Filesystem\Stream\Streams\ofResource(), and ILIAS\Filesystem\Util\Archive\Zip\storeZIPtoFilesystem().
Here is the call graph for this function:
|
private |
Definition at line 82 of file Zip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct(), ILIAS\Filesystem\Util\Archive\Zip\addPath(), ILIAS\Filesystem\Util\Archive\Zip\get(), and ILIAS\Filesystem\Util\Archive\Zip\storeZIPtoFilesystem().
Here is the caller graph for this function:
|
private |
Definition at line 110 of file Zip.php.
References $c.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct().
Here is the caller graph for this function:
|
private |
Definition at line 115 of file Zip.php.
References $path, and ILIAS\Filesystem\Util\Archive\Zip\maybeOpenZip().
Referenced by ILIAS\Filesystem\Util\Archive\Zip\addStream(), and ILIAS\Filesystem\Util\Archive\Zip\get().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
Definition at line 47 of file Zip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Zip\__construct().
|
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().
| const ILIAS\Filesystem\Util\Archive\Zip::ITERATION_FACTOR = 0.9 |