ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilObjFileAbstractZipDelegate. More...
Public Member Functions | |
__construct (object $access_checker, int $node_type, ilTree $tree) | |
ilObjFileAbstractZipDelegate constructor. More... | |
getUploadedSuffixes () | |
![]() | |
handle (int $parent_id, array $post_data, UploadResult $result, ilObjFileGUI $gui) | |
Protected Member Functions | |
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 | |
$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... | |
Class ilObjFileAbstractZipDelegate.
Definition at line 27 of file class.ilObjFileAbstractZipDelegate.php.
ilObjFileAbstractZipDelegate::__construct | ( | object | $access_checker, |
int | $node_type, | ||
ilTree | $tree | ||
) |
ilObjFileAbstractZipDelegate constructor.
ilAccess | ilWorkspaceAccessHandler | $access_checker | |
int | $node_type | |
ilTree | $tree |
Definition at line 69 of file class.ilObjFileAbstractZipDelegate.php.
References $node_type, and $tree.
|
protected |
string | $original_path | |
int | $parent_id |
Definition at line 113 of file class.ilObjFileAbstractZipDelegate.php.
References $DIC, $lng, and isInWorkspace().
Referenced by createSurroundingContainer(), and ilObjFileUnzipRecursiveDelegate\handle().
|
protected |
string | $original_path | |
int | $parent_id |
Definition at line 146 of file class.ilObjFileAbstractZipDelegate.php.
References isInWorkspace().
Referenced by ilObjFileUnzipFlatDelegate\handle(), and ilObjFileUnzipRecursiveDelegate\handle().
|
protected |
Definition at line 76 of file class.ilObjFileAbstractZipDelegate.php.
References createContainer(), and ILIAS\FileUpload\DTO\UploadResult\getName().
Referenced by ilObjFileUnzipRecursiveDelegate\handle().
|
protected |
Definition at line 172 of file class.ilObjFileAbstractZipDelegate.php.
References $i.
Referenced by ilObjFileUnzipFlatDelegate\handle(), ilObjFileUnzipRecursiveDelegate\handle(), and hasMultipleRootEntriesInZip().
ilObjFileAbstractZipDelegate::getUploadedSuffixes | ( | ) |
Implements ilObjUploadDelegateInterface.
Definition at line 215 of file class.ilObjFileAbstractZipDelegate.php.
|
protected |
Definition at line 200 of file class.ilObjFileAbstractZipDelegate.php.
References getNextPath().
Referenced by ilObjFileUnzipRecursiveDelegate\handle().
|
protected |
UploadResult | $result |
Definition at line 96 of file class.ilObjFileAbstractZipDelegate.php.
References ILIAS\FileUpload\DTO\UploadResult\getPath().
Referenced by ilObjFileUnzipFlatDelegate\handle(), and ilObjFileUnzipRecursiveDelegate\handle().
|
protected |
Definition at line 103 of file class.ilObjFileAbstractZipDelegate.php.
References ilObject2GUI\WORKSPACE_NODE_ID.
Referenced by createContainer(), createFile(), ilObjFileUnzipRecursiveDelegate\getPossibleContainer(), and ilObjFileUnzipRecursiveDelegate\handle().
|
protected |
Definition at line 88 of file class.ilObjFileAbstractZipDelegate.php.
Referenced by ilObjFileUnzipFlatDelegate\handle(), and ilObjFileUnzipRecursiveDelegate\handle().
|
protected |
Definition at line 32 of file class.ilObjFileAbstractZipDelegate.php.
|
protected |
Unzip on operating systems may behave differently when unzipping if there are only one or more root nodes in the zip.
Currently, the behavior is the same as in ILIAS 7 and earlier, that in any case the zip structure is checked out directly at the current location in the magazine. If this value is set to true here, another category/folder will be placed around the files and folders of the zip when unpacking if more than one root-node is present. For example, macOS behaves in exactly this way.
Definition at line 61 of file class.ilObjFileAbstractZipDelegate.php.
|
protected |
Definition at line 36 of file class.ilObjFileAbstractZipDelegate.php.
Referenced by __construct().
|
protected |
Definition at line 44 of file class.ilObjFileAbstractZipDelegate.php.
|
protected |
Definition at line 40 of file class.ilObjFileAbstractZipDelegate.php.
Referenced by __construct().
|
protected |
Definition at line 52 of file class.ilObjFileAbstractZipDelegate.php.
|
protected |
Definition at line 48 of file class.ilObjFileAbstractZipDelegate.php.