ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjFileUnzipFlatDelegate.php
Go to the documentation of this file.
1<?php
2
4
10{
11
12 public function handle(
13 int $parent_id,
14 array $post_data,
16 ilObjFileGUI $gui
18 $this->initZip($result);
19
20 foreach ($this->getNextPath() as $original_path) {
21 $is_dir = substr($original_path, -1) === DIRECTORY_SEPARATOR;
22 if ($is_dir) {
23 continue;
24 }
25 $this->createFile($original_path, $parent_id);
26 }
27
28 $this->tearDown();
29
31 $response->error = null;
32 return $response;
33 }
34
35}
$result
An exception for terminatinating execution or to throw for unit testing.
Class ilObjFileAbstractZipDelegate.
createFile(string $original_path, int $parent_id)
GUI class for file objects.
Class ilObjFileUnzipFlatDelegate.
handle(int $parent_id, array $post_data, UploadResult $result, ilObjFileGUI $gui)
Class ilObjFileUploadResponse.
$response