19declare(strict_types=1);
81 ?
string $download_file_name =
null,
82 ?
string $mime_type =
null,
83 bool $delete_file =
false
87 if ($download_file_name !==
null) {
90 if ($mime_type !==
null) {
91 $obj->setMimeType($mime_type);
93 $obj->setDisposition(self::DISP_ATTACHMENT);
94 $obj->setDeleteFile($delete_file);
100 ?
string $download_file_name =
null
103 if ($download_file_name !==
null) {
106 $obj->setDisposition(self::DISP_INLINE);
111 string $path_to_file,
112 ?
string $download_file_name =
null
115 if ($download_file_name !==
null) {
118 $obj->setDisposition(self::DISP_INLINE);
124 return Delivery::returnASCIIFileName($original_filename);
135 public function __call(
string $name, array $arguments)
137 throw new LogicException(
'');
145 ?
string $a_filename =
null,
146 ?
string $a_mime =
null,
147 ?
bool $isInline =
false,
148 ?
bool $removeAfterDelivery =
false,
149 ?
bool $a_exit_after =
true
153 if (!file_exists($a_file)) {
164 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)
trait HttpServiceAware
Trait HttpServiceAware.
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.
static http()
Fetches the global http state from ILIAS.