ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilPHPOutputDelivery.php
Go to the documentation of this file.
1<?php
2require_once('class.ilFileDelivery.php');
3
11
15 protected $ilFileDelivery;
16
17
22 public function start($download_file_name, $mime_type = ilMimeTypeUtil::APPLICATION__OCTET_STREAM) {
24 $this->ilFileDelivery->setMimeType($mime_type);
25 $this->ilFileDelivery->setDownloadFileName($download_file_name);
27 $this->ilFileDelivery->cleanDownloadFileName();
29 $this->ilFileDelivery->checkCache();
33 }
34
35
36 public function stop() {
37 $this->ilFileDelivery->close();
38 }
39}
40
41?>
An exception for terminatinating execution or to throw for unit testing.
Class ilFileDelivery.
setDownloadFileName($download_file_name)
setShowLastModified($show_last_modified)
setDisposition($disposition)
Class ilPHPOutputDelivery.
start($download_file_name, $mime_type=ilMimeTypeUtil::APPLICATION__OCTET_STREAM)