ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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

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  }
global $DIC
Definition: saml.php:7
static http()
Fetches the global http state from ILIAS.
Class ilFileDelivery.
+ 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  }
Class ilFileDelivery.

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: