eZ Publish  [trunk]
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 17 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 91 of file ezfilepassthroughhandler.php.

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

Reimplemented from eZBinaryFileHandler.

Definition at line 26 of file ezfilepassthroughhandler.php.


Member Data Documentation

const eZFilePassthroughHandler::HANDLER_ID = 'ezfilepassthrough'

Definition at line 19 of file ezfilepassthroughhandler.php.


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