ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
HeaderBasedDeliveryHelper.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\FileDelivery\FileDeliveryTypes
;
6
7
/******************************************************************************
8
*
9
* This file is part of ILIAS, a powerful learning management system.
10
*
11
* ILIAS is licensed with the GPL-3.0, you should have received a copy
12
* of said license along with the source code.
13
*
14
* If this is not the case or you just want to try ILIAS, you'll find
15
* us at:
16
* https://www.ilias.de
17
* https://github.com/ILIAS-eLearning
18
*
19
*****************************************************************************/
36
trait
HeaderBasedDeliveryHelper
37
{
43
protected
function
sendFileUnbufferedUsingHeaders(\
Closure
$closure): void
44
{
45
ignore_user_abort(
true
);
46
set_time_limit(0);
47
ob_start();
48
49
$closure();
50
51
ob_flush();
52
ob_end_flush();
53
flush();
54
}
55
}
Closure
ILIAS\FileDelivery\FileDeliveryTypes
Class XAccelTest.
Definition:
DeliveryMethod.php:5
HeaderBasedDeliveryHelper
Services
FileDelivery
classes
FileDeliveryTypes
HeaderBasedDeliveryHelper.php
Generated on Wed Sep 3 2025 22:02:26 for ILIAS by
1.8.13 (using
Doxyfile
)