32 $parent_id = $this->gui_object->getParentId();
35 $multiple_files = count($files) > 1;
36 if ($this->create_base_container_for_multiple_root_entries && $multiple_files) {
40 foreach ($files as $file_path) {
41 if (substr($file_path, -1) !== DIRECTORY_SEPARATOR) {
getZipFiles()
Yields the file-paths of the currently open zip-archive.
createSurroundingContainer(ResourceIdentification $rid)
createFileObj(ResourceIdentification $rid, int $parent_id, array $options=[], bool $create_reference=false)
Creates an ilObjFile instance for the provided information.
Class ilObjFileAbstractZipProcessor.
Class ResourceIdentification.
storeZippedFile(string $file_path)
Creates an IRSS resource from the given filepath.
process(ResourceIdentification $rid, array $options=[])
Processes a given resource for the given arguments.
closeZip()
Closes the currently open zip-archive.
openZip(ResourceIdentification $rid)
Opens the zip archive of the given resource.
Class ilObjFileUnzipFlatProcessor.