1<?
php declare(strict_types=1);
38 $this->ctrl =
$DIC->ctrl();
39 $this->upload =
$DIC->upload();
40 $this->
http = $DIC->http();
58 return $this->ctrl->getLinkTargetByClass([static::class], self::CMD_UPLOAD);
67 return $this->ctrl->getLinkTargetByClass([static::class], self::CMD_INFO);
76 return $this->ctrl->getLinkTargetByClass([static::class], self::CMD_REMOVE);
82 switch ($this->ctrl->getCmd()) {
100 $content = json_encode($this->
getInfoResult($file_identifier));
108 $this->
http->sendResponse();
109 $this->
http->close();
An exception for terminatinating execution or to throw for unit testing.
Class ilCtrlAwareUploadHandler.
getFileRemovalURL()
@inheritDoc
getInfoResult(string $identifier)
getInfoForExistingFiles(array $file_ids)
getFileIdentifierParameterName()
@inheritDoc
__construct()
ilUIDemoFileUploadHandlerGUI constructor.
getUploadURL()
@inheritDoc
executeCommand()
Since this is a ilCtrl aware UploadHandler executeCommand MUST be implemented.
getRemoveResult(string $identifier)
getExistingFileInfoURL()
@inheritDoc
static ofString($string)
Creates a new stream with an initial value.
Interface FileInfoResult.
Class ilCtrlAwareUploadHandler.
static http()
Fetches the global http state from ILIAS.