3 declare(strict_types=1);
48 $this->httpService = $httpState;
57 return is_readable($path_to_file);
64 public function prepare(
string $path_to_file): bool
67 $this->file = fopen($path_to_file,
"rb");
76 public function deliver(
string $path_to_file,
bool $file_marked_to_delete): void
78 $this->httpService->sendResponse();
79 fpassthru($this->file);
117 return unlink($path_to_file);
deliver(string $path_to_file, bool $file_marked_to_delete)
absolute path to fileThis is needed at this point for header-based delivery methodsvoid ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilFileDeliveryType.
__construct(Services $httpState)
PHP constructor.
supportsAttachmentDelivery()
handleFileDeletion(string $path_to_file)
bool
ILIAS HTTP Services $httpService
prepare(string $path_to_file)
bool
doesFileExists(string $path_to_file)