|
| attached (string $path_to_file, ?string $download_file_name=null, ?string $mime_type=null, ?bool $delete_file=false) |
|
| inline (string $path_to_file, ?string $download_file_name=null, ?string $mime_type=null, ?bool $delete_file=false) |
|
| __construct (protected Services $http, protected ResponseBuilder $response_builder, protected ResponseBuilder $fallback_response_builder,) |
|
|
| deliver (string $path_to_file, Disposition $disposition, ?string $download_file_name=null, ?string $mime_type=null, ?bool $delete_file=false) |
|
◆ attached()
ILIAS\FileDelivery\Delivery\LegacyDelivery::attached |
( |
string |
$path_to_file, |
|
|
?string |
$download_file_name = null , |
|
|
?string |
$mime_type = null , |
|
|
?bool |
$delete_file = false |
|
) |
| |
Definition at line 30 of file LegacyDelivery.php.
35 : never {
38 Disposition::ATTACHMENT,
42 );
43 }
deliver(string $path_to_file, Disposition $disposition, ?string $download_file_name=null, ?string $mime_type=null, ?bool $delete_file=false)
string $download_file_name
◆ deliver()
ILIAS\FileDelivery\Delivery\LegacyDelivery::deliver |
( |
string |
$path_to_file, |
|
|
Disposition |
$disposition, |
|
|
?string |
$download_file_name = null , |
|
|
?string |
$mime_type = null , |
|
|
?bool |
$delete_file = false |
|
) |
| |
|
private |
Definition at line 60 of file LegacyDelivery.php.
66 : never {
68 $this->
http->response(),
73 );
74 $r = $this->response_builder->buildForStream(
75 $this->
http->request(),
76 $r,
78 );
80 }
setGeneralHeaders(ResponseInterface $r, string $uri, string $mime_type, string $file_name, Disposition $disposition=Disposition::INLINE)
saveAndClose(ResponseInterface $r, ?string $path_to_delete=null)
static ofResource($resource)
Wraps an already created resource with the stream abstraction.
static http()
Fetches the global http state from ILIAS.
◆ inline()
ILIAS\FileDelivery\Delivery\LegacyDelivery::inline |
( |
string |
$path_to_file, |
|
|
?string |
$download_file_name = null , |
|
|
?string |
$mime_type = null , |
|
|
?bool |
$delete_file = false |
|
) |
| |
The documentation for this class was generated from the following file: