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) | |
getUploadedSuffixes () | |
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 | |
@description 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().
|
protected |
string | $original_path | |
int | $parent_id |
Definition at line 146 of file class.ilObjFileAbstractZipDelegate.php.
References isInWorkspace().
Referenced by ilObjFileUnzipFlatDelegate\handle().
|
protected |
Definition at line 76 of file class.ilObjFileAbstractZipDelegate.php.
References $result, and createContainer().
Referenced by ilObjFileUnzipRecursiveDelegate\handle().
|
protected |
Definition at line 172 of file class.ilObjFileAbstractZipDelegate.php.
References $i.
Referenced by 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().
|
protected |
UploadResult | $result |
Definition at line 96 of file class.ilObjFileAbstractZipDelegate.php.
References $result.
|
protected |
Definition at line 103 of file class.ilObjFileAbstractZipDelegate.php.
References ilObject2GUI\WORKSPACE_NODE_ID.
Referenced by createContainer(), createFile(), and ilObjFileUnzipRecursiveDelegate\getPossibleContainer().
|
protected |
Definition at line 88 of file class.ilObjFileAbstractZipDelegate.php.
|
protected |
Definition at line 32 of file class.ilObjFileAbstractZipDelegate.php.
|
protected |
@description 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.