ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilPHPOutputDelivery.php
Go to the documentation of this file.
1 <?php
2 require_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();
28  $this->ilFileDelivery->clearBuffer();
29  $this->ilFileDelivery->checkCache();
31  $this->ilFileDelivery->setShowLastModified(false);
33  }
34 
35 
36  public function stop() {
37  $this->ilFileDelivery->close();
38  }
39 }
40 
41 ?>
start($download_file_name, $mime_type=ilMimeTypeUtil::APPLICATION__OCTET_STREAM)
setDownloadFileName($download_file_name)
setDisposition($disposition)
Class ilFileDelivery.
Class ilPHPOutputDelivery.
setShowLastModified($show_last_modified)