18 declare(strict_types=1);
39 $result_array = $this->
upload->getResults();
40 $result = end($result_array);
43 $resource_identification = $this->storage->manage()->find($this->rid);
44 if ($resource_identification !== null) {
45 $identifier = $this->storage->manage()->replaceWithUpload(
46 $resource_identification,
49 )->getIdentification()->serialize();
51 $identifier = $this->storage->manage()->upload($result, $this->stakeholder)->serialize();
53 $status = HandlerResult::STATUS_OK;
57 $status = HandlerResult::STATUS_FAILED;
58 $message = $result->getStatus()->getMessage();
__construct(private string $rid="")
Class ilObjBibliographicStakeholder.
Class BasicHandlerResult.
Class ilCtrlAwareStorageUploadHandler.
getFileIdentifierParameterName()