eZPublish  4.7
eZFilePassthroughHandler Class Reference

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

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

Public Member Functions

 eZFilePassthroughHandler ()
 
 handleFileDownload ($contentObject, $contentObjectAttribute, $type, $fileInfo)
 
- Public Member Functions inherited from eZBinaryFileHandler
 attribute ($attribute)
 
 attributes ()
 
 downloadFileObject ($contentObject, $contentObjectAttribute)
 
 downloadType ($contentObject, $contentObjectAttribute)
 
 downloadURL ($contentObject, $contentObjectAttribute)
 
 editTemplate ($contentobjectAttribute)
 
 eZBinaryFileHandler ($identifier, $name, $handleType)
 
 handleDownload ($contentObject, $contentObjectAttribute, $type)
 
 handleFileDownload ($contentObject, $contentObjectAttribute, $type, $mimeData)
 
 handleUpload ()
 
 hasAttribute ($attribute)
 
 informationTemplate ($contentobjectAttribute)
 
 repositories ()
 
 storedFilename (&$binary, $returnMimeData=false)
 
 viewTemplate ($contentobjectAttribute)
 

Public Attributes

const HANDLER_ID = 'ezfilepassthrough'
 
- Public Attributes inherited from eZBinaryFileHandler
 $Info
 
const HANDLE_ALL = 0x3
 
const HANDLE_DOWNLOAD = 0x2
 
const HANDLE_UPLOAD = 0x1
 
const RESULT_OK = 1
 
const RESULT_UNAVAILABLE = 2
 
const TYPE_FILE = 'file'
 
const TYPE_MEDIA = 'media'
 

Static Protected Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from eZBinaryFileHandler
static instance ($identifier=false)
 Returns a shared instance of the eZBinaryFileHandler class pr $handlerName as defined in file.ini[BinaryFileSettings]Handler. More...
 

Detailed Description

Handles file downloading by passing the file through PHP.

Member Function Documentation

static eZFilePassthroughHandler::dispositionType (   $mimeType)
staticprotected

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"
eZFilePassthroughHandler::eZFilePassthroughHandler ( )
eZFilePassthroughHandler::handleFileDownload (   $contentObject,
  $contentObjectAttribute,
  $type,
  $fileInfo 
)

Member Data Documentation

const eZFilePassthroughHandler::HANDLER_ID = 'ezfilepassthrough'

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