19 declare(strict_types=1);
40 private readonly
Closure $content,
47 return UploadHandlerInterface::DEFAULT_FILE_ID_PARAMETER;
52 return $this->
to(
'upload');
57 return $this->
to(
'rm');
62 return $this->
to(
'info');
75 ($this->txt)(
'updated_document'),
78 ))->except(fn() =>
new Ok(
null))->value();
86 private function to(
string $cmd): string
88 return ($this->
link)($cmd);
getInfoForExistingFiles(array $file_ids)
__construct(private readonly Closure $link, private readonly Closure $content, private readonly Closure $txt)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getFileIdentifierParameterName()
A result encapsulates a value or an error and simplifies the handling of those.
Interface FileInfoResult.
getInfoResult(string $identifier)
link(string $caption, string $href, bool $new_viewport=false)
Class BasicFileInfoResult.