19 declare(strict_types=1);
40 private \ILIAS\HTTP\Services
$http;
48 StreamAccess $stream_access,
49 FileNamePolicy $file_name_policy = null
53 $this->file_name_policy = $file_name_policy ??
new NoneFileNamePolicy();
54 $this->
http = $DIC->http();
63 $this->file_name_policy
73 $this->file_name_policy
93 $this->file_name_policy
116 ?
string $zip_filename = null
120 $this->stream_access,
121 $this->file_name_policy,
122 $zip_filename ??
'Download.zip' 127 StorableContainerResource $resource,
136 StorableContainerResource $resource,
138 string $start_file =
'index.html',
139 float $valid_for_at_least_minutes = 120.0
144 $this->stream_access,
146 $valid_for_at_least_minutes
ILIAS ResourceStorage Policy FileNamePolicy $file_name_policy
StreamAccess $stream_access
downloadMultiple(array $resources, ?string $zip_filename=null)
download(StorableResource $resource)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS HTTP Services $http
src(StorableResource $resource, SrcBuilder $src_builder)
static http()
Fetches the global http state from ILIAS.
fileStream(StorableResource $resource)
absolutePath(StorableResource $resource)
__construct(StreamAccess $stream_access, FileNamePolicy $file_name_policy=null)
ConsumerFactory constructor.
containerURI(StorableContainerResource $resource, SrcBuilder $src_builder, string $start_file='index.html', float $valid_for_at_least_minutes=120.0)
containerZIP(StorableContainerResource $resource,)
flavourUrl(Flavour $flavour, SrcBuilder $src_builder)