ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 34 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 43 of file class.ilPHPOutputDelivery.php.

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

43  : void
44  {
45  $settings = new General();
47  $this->ilFileDelivery->setMimeType($mime_type);
48  $this->ilFileDelivery->setDownloadFileName($download_file_name);
49  $this->ilFileDelivery->setDisposition(ilFileDelivery::DISP_ATTACHMENT);
50  $this->ilFileDelivery->setConvertFileNameToAsci($settings->isDownloadWithAsciiFileName());
51  $this->ilFileDelivery->clearBuffer();
52  $this->ilFileDelivery->checkCache();
53  $this->ilFileDelivery->setGeneralHeaders();
54  $this->ilFileDelivery->setShowLastModified(false);
55  $this->ilFileDelivery->setCachingHeaders();
56  }
static http()
Fetches the global http state from ILIAS.
Class Delivery.
Definition: Delivery.php:39
+ Here is the call graph for this function:

◆ stop()

ilPHPOutputDelivery::stop ( )

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

59  : void
60  {
61  $this->ilFileDelivery->close();
62  }

Field Documentation

◆ $ilFileDelivery

Delivery ilPHPOutputDelivery::$ilFileDelivery = null
protected

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


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