ILIAS  release_7 Revision v7.30-3-g800a261c036
ilObjFileUnzipFlatDelegate Class Reference

Class ilObjFileUnzipFlatDelegate. More...

+ Inheritance diagram for ilObjFileUnzipFlatDelegate:
+ Collaboration diagram for ilObjFileUnzipFlatDelegate:

Public Member Functions

 handle (int $parent_id, array $post_data, UploadResult $result, ilObjFileGUI $gui)
 
- Public Member Functions inherited from ilObjFileAbstractZipDelegate
 __construct (object $access_checker, int $node_type, ilTree $tree)
 ilObjFileAbstractZipDelegate constructor. More...
 
 getUploadedSuffixes ()
 

Additional Inherited Members

- Protected Member Functions inherited from ilObjFileAbstractZipDelegate
 createSurroundingContainer (UploadResult $result, int $parent_id)
 
 tearDown ()
 
 initZip (UploadResult $result)
 
 isInWorkspace ()
 
 createContainer (string $original_path, int $parent_id)
 
 createFile (string $original_path, int $parent_id)
 
 getNextPath ()
 
 hasMultipleRootEntriesInZip ()
 
- Protected Attributes inherited from ilObjFileAbstractZipDelegate
 $access_handler
 
 $node_type
 
 $tree
 
 $path_map = []
 
 $zip
 
 $uploaded_suffixes = []
 
 $create_base_container_for_multiple_root_entries = false
 Unzip on operating systems may behave differently when unzipping if there are only one or more root nodes in the zip. More...
 

Detailed Description

Member Function Documentation

◆ handle()

ilObjFileUnzipFlatDelegate::handle ( int  $parent_id,
array  $post_data,
UploadResult  $result,
ilObjFileGUI  $gui 
)

Implements ilObjUploadDelegateInterface.

Definition at line 12 of file class.ilObjFileUnzipFlatDelegate.php.

References $response, ilObjFileAbstractZipDelegate\createFile(), ilObjFileAbstractZipDelegate\getNextPath(), ilObjFileAbstractZipDelegate\initZip(), and ilObjFileAbstractZipDelegate\tearDown().

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  }
Class ilObjFileUploadResponse.
createFile(string $original_path, int $parent_id)
$response
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: