8require_once(
'./Services/FileDelivery/interfaces/int.ilFileDeliveryType.php');
39 $this->httpService = $httpState;
48 return is_readable($path_to_file);
58 $this->file = fopen($path_to_file,
"rb");
65 public function deliver($path_to_file, $file_marked_to_delete)
67 $this->httpService->sendResponse();
68 fpassthru($this->file);
106 return unlink($path_to_file);
An exception for terminatinating execution or to throw for unit testing.
doesFileExists($path_to_file)
@inheritDoc
deliver($path_to_file, $file_marked_to_delete)
bool
__construct(GlobalHttpState $httpState)
PHP constructor.
handleFileDeletion($path_to_file)
bool
supportsInlineDelivery()
bool
supportsAttachmentDelivery()
bool
prepare($path_to_file)
bool
Interface ilFileDeliveryType.
Interface GlobalHttpState.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...