ILIAS  release_7 Revision v7.30-3-g800a261c036
ilPHPOutputDelivery Class Reference

Class ilPHPOutputDelivery. More...

+ Collaboration diagram for ilPHPOutputDelivery:

Public Member Functions

 start ($download_file_name, $mime_type=ilMimeTypeUtil::APPLICATION__OCTET_STREAM)
 
 stop ()
 

Protected Attributes

 $ilFileDelivery
 

Detailed Description

Class ilPHPOutputDelivery.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
1.0.0

Definition at line 17 of file class.ilPHPOutputDelivery.php.

Member Function Documentation

◆ start()

ilPHPOutputDelivery::start (   $download_file_name,
  $mime_type = ilMimeTypeUtil::APPLICATION__OCTET_STREAM 
)
Parameters
$download_file_name
string$mime_type

Definition at line 30 of file class.ilPHPOutputDelivery.php.

31 {
32 global $DIC;
33 $ilClientIniFile = $DIC['ilClientIniFile'];
35 $this->ilFileDelivery->setMimeType($mime_type);
36 $this->ilFileDelivery->setDownloadFileName($download_file_name);
37 $this->ilFileDelivery->setDisposition(ilFileDelivery::DISP_ATTACHMENT);
38 $this->ilFileDelivery->setConvertFileNameToAsci((bool) !$ilClientIniFile->readVariable('file_access', 'disable_ascii'));
39 $this->ilFileDelivery->clearBuffer();
40 $this->ilFileDelivery->checkCache();
41 $this->ilFileDelivery->setGeneralHeaders();
42 $this->ilFileDelivery->setShowLastModified(false);
43 $this->ilFileDelivery->setCachingHeaders();
44 }
Class ilFileDelivery.
global $DIC
Definition: goto.php:24
static http()
Fetches the global http state from ILIAS.

References $DIC, ilFileDelivery\DIRECT_PHP_OUTPUT, ilFileDelivery\DISP_ATTACHMENT, and ILIAS\FileDelivery\http().

+ Here is the call graph for this function:

◆ stop()

ilPHPOutputDelivery::stop ( )

Definition at line 47 of file class.ilPHPOutputDelivery.php.

48 {
49 $this->ilFileDelivery->close();
50 }

Field Documentation

◆ $ilFileDelivery

ilPHPOutputDelivery::$ilFileDelivery
protected

Definition at line 23 of file class.ilPHPOutputDelivery.php.


The documentation for this class was generated from the following file: