|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ILIAS\Filesystem\Util\Archive\Unzip:Public Member Functions | |
| __construct (protected UnzipOptions $options, protected FileStream $stream) | |
| getPaths () | |
| getStreams () | |
| getFileStreams () | |
| getAmountOfDirectories () | |
| getDirectories () | |
| Yields the directory-paths of the currently open zip-archive. More... | |
| getAmountOfFiles () | |
| getFiles () | |
| Yields the file-paths of the currently open zip-archive. More... | |
| hasMultipleRootEntriesInZip () | |
| extract () | |
| hasZipReadingError () | |
Data Fields | |
| const | DS_UNIX = "/" |
| const | DS_WIN = "\\" |
| const | BASE_DIR = '.' |
Protected Member Functions | |
| pathToStreamGenerator () | |
Protected Attributes | |
| const | URI = 'uri' |
| const | DIRECTORY_SEPARATOR = DIRECTORY_SEPARATOR |
| ZipArchive | $zip |
| bool | $error_reading_zip = false |
| string | $path_to_zip |
Private Attributes | |
| int | $amount_of_entries = 0 |
| ILIAS\Filesystem\Util\Archive\Unzip::__construct | ( | protected UnzipOptions | $options, |
| protected FileStream | $stream | ||
| ) |
Definition at line 44 of file Unzip.php.
| ILIAS\Filesystem\Util\Archive\Unzip::extract | ( | ) |
Definition at line 195 of file Unzip.php.
References $path, ILIAS\Filesystem\Util\Archive\FLAT_STRUCTURE, ILIAS\Filesystem\Util\Archive\Unzip\getPaths(), ILIAS\Filesystem\Util\Archive\Unzip\getStreams(), and ILIAS\Filesystem\Util\sanitizeFileName().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::getAmountOfDirectories | ( | ) |
Definition at line 112 of file Unzip.php.
References ILIAS\Filesystem\Util\Archive\Unzip\getDirectories().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::getAmountOfFiles | ( | ) |
Definition at line 150 of file Unzip.php.
References ILIAS\Filesystem\Util\Archive\Unzip\getFiles().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::getDirectories | ( | ) |
Yields the directory-paths of the currently open zip-archive.
This fixes the issue that win and mac zip archives have different directory structures.
Definition at line 122 of file Unzip.php.
References $path, ILIAS\Filesystem\Util\Archive\Unzip\DIRECTORY_SEPARATOR, ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ILIAS\Filesystem\Util\Archive\Unzip\getPaths(), and ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Referenced by ILIAS\Filesystem\Util\Archive\Unzip\getAmountOfDirectories(), and ILIAS\Filesystem\Util\Archive\Unzip\hasMultipleRootEntriesInZip().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::getFiles | ( | ) |
Yields the file-paths of the currently open zip-archive.
Definition at line 159 of file Unzip.php.
References $path, ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ILIAS\Filesystem\Util\Archive\Unzip\getPaths(), and ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Referenced by ILIAS\Filesystem\Util\Archive\Unzip\getAmountOfFiles(), ILIAS\Filesystem\Util\Archive\Unzip\getFileStreams(), ILIAS\Filesystem\Util\Archive\Unzip\getStreams(), and ILIAS\Filesystem\Util\Archive\Unzip\hasMultipleRootEntriesInZip().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::getFileStreams | ( | ) |
Definition at line 105 of file Unzip.php.
References ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ILIAS\Filesystem\Util\Archive\Unzip\getFiles(), and ILIAS\Filesystem\Util\Archive\Unzip\pathToStreamGenerator().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::getPaths | ( | ) |
Definition at line 75 of file Unzip.php.
References $path.
Referenced by ILIAS\Filesystem\Util\Archive\Unzip\extract(), ILIAS\Filesystem\Util\Archive\Unzip\getDirectories(), ILIAS\Filesystem\Util\Archive\Unzip\getFiles(), and ILIAS\Filesystem\Util\Archive\Unzip\getStreams().
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::getStreams | ( | ) |
Definition at line 91 of file Unzip.php.
References ILIAS\Filesystem\Util\Archive\FLAT_STRUCTURE, ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ILIAS\Filesystem\Util\Archive\Unzip\getFiles(), ILIAS\Filesystem\Util\Archive\Unzip\getPaths(), and ILIAS\Filesystem\Util\Archive\Unzip\pathToStreamGenerator().
Referenced by ILIAS\Filesystem\Util\Archive\Unzip\extract().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::hasMultipleRootEntriesInZip | ( | ) |
Definition at line 171 of file Unzip.php.
References ILIAS\Filesystem\Util\Archive\Unzip\getDirectories(), and ILIAS\Filesystem\Util\Archive\Unzip\getFiles().
Here is the call graph for this function:| ILIAS\Filesystem\Util\Archive\Unzip::hasZipReadingError | ( | ) |
Definition at line 250 of file Unzip.php.
References ILIAS\Filesystem\Util\Archive\Unzip\$error_reading_zip.
|
protected |
Definition at line 61 of file Unzip.php.
References $path, and ILIAS\Filesystem\Stream\Streams\ofResource().
Referenced by ILIAS\Filesystem\Util\Archive\Unzip\getFileStreams(), and ILIAS\Filesystem\Util\Archive\Unzip\getStreams().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
protected |
Definition at line 40 of file Unzip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Unzip\hasZipReadingError().
|
protected |
|
protected |
|
protected |
Definition at line 35 of file Unzip.php.
Referenced by ILIAS\Filesystem\Util\Archive\Unzip\getDirectories().
|
protected |