3declare(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);
doesFileExists(string $path_to_file)
@inheritDoc
prepare(string $path_to_file)
bool
handleFileDeletion(string $path_to_file)
bool
deliver(string $path_to_file, bool $file_marked_to_delete)
void
supportsAttachmentDelivery()
ILIAS HTTP Services $httpService
__construct(Services $httpState)
PHP constructor.
Interface ilFileDeliveryType.