|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ilContainerResourceGUI:
Collaboration diagram for ilContainerResourceGUI:Public Member Functions | |
| __construct (private Configuration $view_configuration) | |
| executeCommand () | |
| upload () | |
| getFileIdentifierParameterName () | |
| getUploadURL () | |
| getFileRemovalURL () | |
| getExistingFileInfoURL () | |
| getInfoForExistingFiles (array $file_ids) | |
| getInfoResult (string $identifier) | |
| supportsChunkedUploads () | |
| getFileIdentifierParameterName () | |
| getUploadURL () | |
| getFileRemovalURL () | |
| getExistingFileInfoURL () | |
| getInfoForExistingFiles (array $file_ids) | |
| getInfoResult (string $identifier) | |
| supportsChunkedUploads () | |
Data Fields | |
| const | P_PATH = 'path' |
| const | P_PATHS = 'paths' |
| const | CMD_INDEX = 'index' |
| const | CMD_INFO = 'info' |
| const | CMD_UPLOAD = 'upload' |
| const | CMD_POST_UPLOAD = 'postUpload' |
| const | CMD_REMOVE = 'remove' |
| const | CMD_DOWNLOAD = 'download' |
| const | CMD_DOWNLOAD_ZIP = 'downloadZIP' |
| const | CMD_UNZIP = 'unzip' |
| const | CMD_RENDER_CONFIRM_REMOVE = 'renderConfirmRemove' |
| const | ADD_DIRECTORY = 'addDirectory' |
Data Fields inherited from ILIAS\UI\Component\Input\Field\UploadHandler | |
| const | DEFAULT_FILE_ID_PARAMETER = 'file_id' |
Private Member Functions | |
| abortWithPermissionDenied () | |
| index () | |
| downloadZIP () | |
| addDirectory () | |
| postUpload () | |
| download () | |
| getPathsFromRequest () | |
| unzip () | |
| renderConfirmRemove () | |
| remove () | |
| storeUploads () | |
| Adds every file of the request to the container. More... | |
| storeChunk () | |
| The container derives the name of an entry from the name of the file, so the reassembled file is handed over as the only file of its directory. More... | |
| ok () | |
| sendHandlerResult (BasicHandlerResult $result) | |
Definition at line 46 of file class.ilContainerResourceGUI.php.
|
final |
Definition at line 122 of file class.ilContainerResourceGUI.php.
References $DIC, $view_control_builder, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\components\ResourceStorage\initChunkedUploadBuffer(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), ILIAS\Repository\refinery(), and upload().
Here is the call graph for this function:
|
private |
Definition at line 189 of file class.ilContainerResourceGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by addDirectory(), postUpload(), remove(), renderConfirmRemove(), unzip(), and upload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 269 of file class.ilContainerResourceGUI.php.
References abortWithPermissionDenied(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 332 of file class.ilContainerResourceGUI.php.
References getPathsFromRequest().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 262 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand().
Here is the caller graph for this function:| ilContainerResourceGUI::executeCommand | ( | ) |
Definition at line 195 of file class.ilContainerResourceGUI.php.
References ADD_DIRECTORY, addDirectory(), CMD_DOWNLOAD, CMD_DOWNLOAD_ZIP, CMD_INDEX, CMD_POST_UPLOAD, CMD_REMOVE, CMD_RENDER_CONFIRM_REMOVE, CMD_UNZIP, CMD_UPLOAD, ILIAS\Repository\ctrl(), download(), downloadZIP(), index(), postUpload(), renderConfirmRemove(), unzip(), and upload().
Here is the call graph for this function:| ilContainerResourceGUI::getExistingFileInfoURL | ( | ) |
Implements ILIAS\UI\Component\Input\Field\UploadHandler.
Definition at line 537 of file class.ilContainerResourceGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:| ilContainerResourceGUI::getFileIdentifierParameterName | ( | ) |
Implements ILIAS\UI\Component\Input\Field\UploadHandler.
Definition at line 522 of file class.ilContainerResourceGUI.php.
References P_PATH.
| ilContainerResourceGUI::getFileRemovalURL | ( | ) |
Implements ILIAS\UI\Component\Input\Field\UploadHandler.
Definition at line 532 of file class.ilContainerResourceGUI.php.
| ilContainerResourceGUI::getInfoForExistingFiles | ( | array | $file_ids | ) |
| array | $file_ids |
Implements ILIAS\UI\Component\Input\Field\UploadHandler.
Definition at line 542 of file class.ilContainerResourceGUI.php.
| ilContainerResourceGUI::getInfoResult | ( | string | $identifier | ) |
Implements ILIAS\UI\Component\Input\Field\UploadHandler.
Definition at line 547 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 341 of file class.ilContainerResourceGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by download(), remove(), renderConfirmRemove(), and unzip().
Here is the call graph for this function:
Here is the caller graph for this function:| ilContainerResourceGUI::getUploadURL | ( | ) |
Implements ILIAS\UI\Component\Input\Field\UploadHandler.
Definition at line 527 of file class.ilContainerResourceGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
private |
Definition at line 239 of file class.ilContainerResourceGUI.php.
References $components, and $DIC.
Referenced by executeCommand().
Here is the caller graph for this function:
|
private |
Definition at line 507 of file class.ilContainerResourceGUI.php.
Referenced by storeUploads().
Here is the caller graph for this function:
|
private |
Definition at line 317 of file class.ilContainerResourceGUI.php.
References abortWithPermissionDenied(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 424 of file class.ilContainerResourceGUI.php.
References abortWithPermissionDenied(), ILIAS\Repository\ctrl(), getPathsFromRequest(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Here is the call graph for this function:
|
private |
Definition at line 397 of file class.ilContainerResourceGUI.php.
References abortWithPermissionDenied(), getPathsFromRequest(), and ILIAS\FileDelivery\http().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 512 of file class.ilContainerResourceGUI.php.
References $response, and ILIAS\FileDelivery\http().
Referenced by upload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
The container derives the name of an entry from the name of the file, so the reassembled file is handed over as the only file of its directory.
Adding that directory reaches ZipArchive::addFile(), which reads the file lazily - unlike addStreamToContainer(), which would pull the whole file into memory.
Definition at line 491 of file class.ilContainerResourceGUI.php.
References ILIAS\components\ResourceStorage\assembleChunk(), and upload().
Referenced by upload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Adds every file of the request to the container.
A request can carry more than one file, therefore every result has to be taken into account: reporting the outcome of the last one would hide files rejected by a pre-processor from the user.
Definition at line 458 of file class.ilContainerResourceGUI.php.
References $container, $message, $results, ILIAS\components\ResourceStorage\failedResult(), ok(), and upload().
Referenced by upload().
Here is the call graph for this function:
Here is the caller graph for this function:| ilContainerResourceGUI::supportsChunkedUploads | ( | ) |
Implements ILIAS\UI\Component\Input\Field\UploadHandler.
Definition at line 552 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 376 of file class.ilContainerResourceGUI.php.
References abortWithPermissionDenied(), ILIAS\Repository\ctrl(), getPathsFromRequest(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilContainerResourceGUI::upload | ( | ) |
Definition at line 300 of file class.ilContainerResourceGUI.php.
References abortWithPermissionDenied(), ILIAS\components\ResourceStorage\isChunkedUpload(), ILIAS\components\ResourceStorage\readChunkInformation(), sendHandlerResult(), storeChunk(), storeUploads(), and upload().
Referenced by __construct(), executeCommand(), storeChunk(), storeUploads(), and upload().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 113 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 119 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 117 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 104 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 110 of file class.ilContainerResourceGUI.php.
Definition at line 112 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 111 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 105 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 118 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 109 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 120 of file class.ilContainerResourceGUI.php.
Definition at line 115 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 108 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 116 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 114 of file class.ilContainerResourceGUI.php.
Referenced by __construct().
|
private |
Definition at line 107 of file class.ilContainerResourceGUI.php.
|
private |
Definition at line 106 of file class.ilContainerResourceGUI.php.
| const ilContainerResourceGUI::ADD_DIRECTORY = 'addDirectory' |
Definition at line 102 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand(), and ILIAS\components\ResourceStorage\Container\View\StandardActionProvider\initModals().
| const ilContainerResourceGUI::CMD_DOWNLOAD = 'download' |
Definition at line 85 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand(), and ILIAS\components\ResourceStorage\Container\View\StandardActionProvider\getSingleActions().
| const ilContainerResourceGUI::CMD_DOWNLOAD_ZIP = 'downloadZIP' |
Definition at line 89 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand(), and ILIAS\components\ResourceStorage\Container\View\StandardActionProvider\getTopActions().
| const ilContainerResourceGUI::CMD_INDEX = 'index' |
Definition at line 63 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand(), ILIAS\components\ResourceStorage\Container\View\RequestToDataTable\getBreadcrumbs(), ILIAS\components\ResourceStorage\Container\View\ViewControlBuilder\getPagination(), ILIAS\components\ResourceStorage\Container\View\ViewControlBuilder\getSortation(), and ILIAS\components\ResourceStorage\Container\View\ActionBuilder\initURIBuilder().
| const ilContainerResourceGUI::CMD_INFO = 'info' |
Definition at line 67 of file class.ilContainerResourceGUI.php.
| const ilContainerResourceGUI::CMD_POST_UPLOAD = 'postUpload' |
Definition at line 75 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand(), and ILIAS\components\ResourceStorage\Container\View\UploadBuilder\getDropZone().
| const ilContainerResourceGUI::CMD_REMOVE = 'remove' |
Definition at line 81 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand().
| const ilContainerResourceGUI::CMD_RENDER_CONFIRM_REMOVE = 'renderConfirmRemove' |
Definition at line 98 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand(), and ILIAS\components\ResourceStorage\Container\View\StandardActionProvider\getSingleActions().
| const ilContainerResourceGUI::CMD_UNZIP = 'unzip' |
Definition at line 94 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand(), and ILIAS\components\ResourceStorage\Container\View\StandardActionProvider\getSingleActions().
| const ilContainerResourceGUI::CMD_UPLOAD = 'upload' |
Definition at line 71 of file class.ilContainerResourceGUI.php.
Referenced by executeCommand().
| const ilContainerResourceGUI::P_PATH = 'path' |
Definition at line 54 of file class.ilContainerResourceGUI.php.
Referenced by getFileIdentifierParameterName(), and ILIAS\components\ResourceStorage\Container\View\ActionBuilder\initURIBuilder().
| const ilContainerResourceGUI::P_PATHS = 'paths' |
Definition at line 58 of file class.ilContainerResourceGUI.php.