30 ?
string $title =
null,
31 ?
string $description =
null,
32 ?
string $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) {
getZipFiles()
Yields the file-paths of the currently open zip-archive.
createSurroundingContainer(ResourceIdentification $rid)
Class ilObjFileAbstractZipProcessor.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Class ResourceIdentification.
storeZippedFile(string $file_path)
Creates an IRSS resource from the given filepath.
closeZip()
Closes the currently open zip-archive.
openZip(ResourceIdentification $rid)
Opens the zip archive of the given resource.
createFileObj(ResourceIdentification $rid, int $parent_id, ?string $title=null, ?string $description=null, ?string $copyright_id=null, bool $create_reference=false)
Creates an ilObjFile instance for the provided information.
process(ResourceIdentification $rid, ?string $title=null, ?string $description=null, ?string $copyright_id=null)
Processes a given resource for the given arguments.
Class ilObjFileUnzipFlatProcessor.