ILIAS  release_7 Revision v7.30-3-g800a261c036
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...