ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPHPOutputDelivery Class Reference

Class ilPHPOutputDelivery. More...

+ Collaboration diagram for ilPHPOutputDelivery:

Public Member Functions

 start (string $download_file_name, string $mime_type=MimeType::APPLICATION__OCTET_STREAM)
 
 stop ()
 

Protected Attributes

Delivery $ilFileDelivery = null
 

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 30 of file class.ilPHPOutputDelivery.php.

Member Function Documentation

◆ start()

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

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

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

39  : void
40  {
41  global $DIC;
42  $ilClientIniFile = $DIC['ilClientIniFile'];
44  $this->ilFileDelivery->setMimeType($mime_type);
45  $this->ilFileDelivery->setDownloadFileName($download_file_name);
46  $this->ilFileDelivery->setDisposition(ilFileDelivery::DISP_ATTACHMENT);
47  $this->ilFileDelivery->setConvertFileNameToAsci((bool) !$ilClientIniFile->readVariable('file_access', 'disable_ascii'));
48  $this->ilFileDelivery->clearBuffer();
49  $this->ilFileDelivery->checkCache();
50  $this->ilFileDelivery->setGeneralHeaders();
51  $this->ilFileDelivery->setShowLastModified(false);
52  $this->ilFileDelivery->setCachingHeaders();
53  }
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
Class Delivery.
Definition: Delivery.php:37
Class ilFileDelivery.
+ Here is the call graph for this function:

◆ stop()

ilPHPOutputDelivery::stop ( )

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

56  : void
57  {
58  $this->ilFileDelivery->close();
59  }
Class ilFileDelivery.

Field Documentation

◆ $ilFileDelivery

Delivery ilPHPOutputDelivery::$ilFileDelivery = null
protected

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


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