3 declare(strict_types=1);
43 $this->storage = $DIC->resourceStorage();
54 return $this->
ctrl->getLinkTargetByClass($this->class_path, self::CMD_UPLOAD, null,
true);
62 return $this->
ctrl->getLinkTargetByClass($this->class_path, self::CMD_INFO, null,
true);
71 return $this->
ctrl->getLinkTargetByClass($this->class_path, self::CMD_REMOVE, null,
true);
83 $result_array = $this->
upload->getResults();
84 $result = end($result_array);
87 $identifier = $this->storage->manage()->upload($result, $this->stakeholder)->serialize();
88 $status = HandlerResult::STATUS_OK;
92 $status = HandlerResult::STATUS_FAILED;
93 $message = $result->getStatus()->getMessage();
105 if (null !== (
$id = $this->storage->manage()->find($identifier))) {
106 $this->storage->manage()->remove(
$id, $this->stakeholder);
107 $status = HandlerResult::STATUS_OK;
110 $status = HandlerResult::STATUS_OK;
111 $message =
"file with identifier '$identifier' doesn't exist, nothing to do.";
123 if (null !== (
$id = $this->storage->manage()->find($identifier))) {
124 $revision = $this->storage->manage()->getCurrentRevision(
$id)->getInformation();
125 $title = $revision->getTitle();
127 $mime = $revision->getMimeType();
129 $title = $mime =
'unknown';
143 foreach ($file_ids as $identifier) {
147 return $info_results;
Class ilObjFileStakeholder.
getFileRemovalURL()
overrides parent method in order to provide an async URL.
getInfoForExistingFiles(array $file_ids)
getInfoResult(string $identifier)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getRemoveResult(string $identifier)
Class BasicHandlerResult.
Interface FileInfoResult.
Class ilCtrlAwareUploadHandler.
getFileIdentifierParameterName()
__construct(Container $dic, ilPlugin $plugin)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
ilObjFileStakeholder $stakeholder
Class ilCountPDFPagesPreProcessors.
Class BasicFileInfoResult.