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