19declare(strict_types=1);
53 $this->storage =
$DIC->resourceStorage();
54 $this->wrapper =
$DIC->http()->wrapper();
71 $array = $this->
upload->getResults();
72 $result = end($array);
75 if ($this->wrapper->query()->has(
'rid')) {
76 $to_str = $this->
refinery->to()->string();
77 $rid = $this->wrapper->query()->retrieve(
'rid', $to_str);
78 $id = $this->storage->manage()->find($rid);
80 $this->storage->manage()->appendNewRevision(
$id, $result, $this->stakeholder);
85 $i = $this->storage->manage()->upload($result, $this->stakeholder);
86 $rid = $i->serialize();
97 $message = $result->getStatus()->getMessage();
105 $id = $this->storage->manage()->find($rid);
107 $rev = $this->storage->manage()->getCurrentRevision(
$id);
108 $rev_num = $rev->getVersionNumber();
109 $this->storage->manage()->removeRevision(
$id, $rev_num);
127 $id = $this->storage->manage()->find($rid);
131 $r = $this->storage->manage()->getCurrentRevision(
$id)->getInformation();
148 foreach ($resource_identifiers as $rid) {
149 $id = $this->storage->manage()->find($rid);
153 $r = $this->storage->manage()->getCurrentRevision(
$id)->getInformation();
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Builds a Color from either hex- or rgb values.
Class ilCtrlAwareUploadHandler.
getFileIdentifierParameterName()
@inheritDoc
Class BasicFileInfoResult.
Class BasicHandlerResult.
getRemoveResult(string $rid)
getInfoResult(string $rid)
ilObjFileIconStakeholder $stakeholder
__construct()
ilUIDemoFileUploadHandlerGUI constructor.
getInfoForExistingFiles(array $resource_identifiers)
Class ResourceIdentification.
Interface FileInfoResult.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc