3declare(strict_types=1);
56 ?
string $download_file_name =
null,
57 ?
string $mime_type =
null,
58 bool $delete_file =
false
62 if ($download_file_name !==
null) {
65 if ($mime_type !==
null) {
66 $obj->setMimeType($mime_type);
68 $obj->setDisposition(self::DISP_ATTACHMENT);
69 $obj->setDeleteFile($delete_file);
75 ?
string $download_file_name =
null
78 if ($download_file_name !==
null) {
81 $obj->setDisposition(self::DISP_INLINE);
87 ?
string $download_file_name =
null
90 if ($download_file_name !==
null) {
93 $obj->setDisposition(self::DISP_INLINE);
99 return Delivery::returnASCIIFileName($original_filename);
112 throw new LogicException(
'');
120 ?
string $a_filename =
null,
121 ?
string $a_mime =
null,
122 ?
bool $isInline =
false,
123 ?
bool $removeAfterDelivery =
false,
124 ?
bool $a_exit_after =
true
128 if (!file_exists($a_file)) {
139 if ($a_mime !==
null && $a_mime !==
'') {
setExitAfter(bool $exit_after)
setConvertFileNameToAsci(bool $convert_file_name_to_asci)
setMimeType(string $mime_type)
setDisposition(string $disposition)
setDeleteFile(bool $delete_file)
setDownloadFileName(string $download_file_name)
static returnASCIIFileName(string $original_filename)
Converts a UTF-8 filename to ASCII.
const DELIVERY_METHOD_PHP_CHUNKED
__construct(string $file_path)
ilFileDelivery constructor.
static streamVideoInline(string $path_to_file, ?string $download_file_name=null)
static deliverFileAttached(string $path_to_file, ?string $download_file_name=null, ?string $mime_type=null, bool $delete_file=false)
const DELIVERY_METHOD_XACCEL
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
__call(string $name, array $arguments)
Workaround because legacy components try to call methods which are moved to the Deliver class.
static deliverFileInline(string $path_to_file, ?string $download_file_name=null)
const DELIVERY_METHOD_PHP
const DELIVERY_METHOD_XSENDFILE
Interface ilFileDeliveryService.
trait HttpServiceAware
Trait HttpServiceAware.
static http()
Fetches the global http state from ILIAS.