19declare(strict_types=1);
41 $this->storage =
$DIC->resourceStorage();
43 $this->
lng = $DIC->language();
52 $array = $this->
upload->getResults();
53 $result = end($array);
55 $i = $this->storage->manage()->upload($result, $this->stakeholder);
56 $status = HandlerResultInterface::STATUS_OK;
57 $identifier = $i->serialize();
58 $message = $this->
lng->txt(
'upload_ok');
60 $status = HandlerResultInterface::STATUS_FAILED;
62 $message = $result->getStatus()->getMessage();
70 $id = $this->storage->manage()->find($identifier);
72 $this->storage->manage()->remove(
$id, $this->stakeholder);
81 $id = $this->storage->manage()->find($identifier);
85 $r = $this->storage->manage()->getCurrentRevision(
$id)->getInformation();
93 foreach ($file_ids as $file_id) {
94 $id = $this->storage->manage()->find($file_id);
98 $r = $this->storage->manage()->getCurrentRevision(
$id)->getInformation();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class ilCtrlAwareUploadHandler.
getFileIdentifierParameterName()
@inheritDoc
Class BasicFileInfoResult.
Class BasicHandlerResult.
Class ResourceIdentification.
Interface FileInfoResult.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc