ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
HeaderBasedDeliveryHelper.php
Go to the documentation of this file.
1<?php
2
4
21trait HeaderBasedDeliveryHelper
22{
23
29 protected function sendFileUnbufferedUsingHeaders(\Closure $closure)
30 {
31 ignore_user_abort(true);
32 set_time_limit(0);
33 ob_start();
34
35 $closure();
36
37 ob_flush();
38 ob_end_flush();
39 flush();
40 }
41}
An exception for terminatinating execution or to throw for unit testing.