eZ Publish  [4.2]
eZFilePassthroughHandler Class Reference

Handles file downloading by passing the file through PHP. More...

+ Inheritance diagram for eZFilePassthroughHandler:
+ Collaboration diagram for eZFilePassthroughHandler:

List of all members.

Public Member Functions

 eZFilePassthroughHandler ()
 handleFileDownload ($contentObject, $contentObjectAttribute, $type, $fileInfo)

Public Attributes

const HANDLER_ID = 'ezfilepassthrough'

Static Protected Member Functions

static dispositionType ($mimeType)
 Checks if a file should be downloaded to disk or displayed inline in the browser.

Detailed Description

Handles file downloading by passing the file through PHP.

Definition at line 37 of file ezfilepassthroughhandler.php.


Member Function Documentation

static eZFilePassthroughHandler::dispositionType ( mimeType) [static, protected]

Checks if a file should be downloaded to disk or displayed inline in the browser.

This method returns "attachment" if no setting for the mime type is found.

Parameters:
string$mimetype
Returns:
string "attachment" or "inline"

Definition at line 124 of file ezfilepassthroughhandler.php.

eZFilePassthroughHandler::eZFilePassthroughHandler ( )

Definition at line 41 of file ezfilepassthroughhandler.php.

eZFilePassthroughHandler::handleFileDownload ( contentObject,
contentObjectAttribute,
type,
fileInfo 
)

Reimplemented from eZBinaryFileHandler.

Definition at line 46 of file ezfilepassthroughhandler.php.


Member Data Documentation

const eZFilePassthroughHandler::HANDLER_ID = 'ezfilepassthrough'

Definition at line 39 of file ezfilepassthroughhandler.php.


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