eZ Publish  [trunk]
eZBinaryFileHandler Class Reference

Interface for all binary file handlers. More...

+ Inheritance diagram for eZBinaryFileHandler:

List of all members.

Public Member Functions

 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)

Static Public Member Functions

static instance ($identifier=false)
 Returns a shared instance of the eZBinaryFileHandler class pr $handlerName as defined in file.ini[BinaryFileSettings]Handler.

Public Attributes

 $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'

Detailed Description

Interface for all binary file handlers.

Definition at line 22 of file ezbinaryfilehandler.php.


Member Function Documentation

Definition at line 53 of file ezbinaryfilehandler.php.

eZBinaryFileHandler::downloadFileObject ( contentObject,
contentObjectAttribute 
)
Returns:
the file object which corresponds to $contentObject and $contentObjectAttribute.

Definition at line 145 of file ezbinaryfilehandler.php.

Referenced by downloadURL().

eZBinaryFileHandler::downloadType ( contentObject,
contentObjectAttribute 
)
Returns:
the file object type which corresponds to $contentObject and $contentObjectAttribute.
Deprecated:

Definition at line 160 of file ezbinaryfilehandler.php.

Referenced by downloadURL().

eZBinaryFileHandler::downloadURL ( contentObject,
contentObjectAttribute 
)
Returns:
the download url for the file object which corresponds to $contentObject and $contentObjectAttribute.
Deprecated:

Definition at line 177 of file ezbinaryfilehandler.php.

eZBinaryFileHandler::editTemplate ( contentobjectAttribute)
Returns:
the suffix for the template name which will be used for attribute viewing.
Note:
Default returns false which means no special template.

Definition at line 78 of file ezbinaryfilehandler.php.

eZBinaryFileHandler::handleDownload ( contentObject,
contentObjectAttribute,
type 
)

Definition at line 203 of file ezbinaryfilehandler.php.

eZBinaryFileHandler::handleFileDownload ( contentObject,
contentObjectAttribute,
type,
mimeData 
)

Reimplemented in eZFilePassthroughHandler, and eZFileDirectHandler.

Definition at line 227 of file ezbinaryfilehandler.php.

Referenced by handleDownload().

Definition at line 48 of file ezbinaryfilehandler.php.

eZBinaryFileHandler::informationTemplate ( contentobjectAttribute)
Returns:
the suffix for the template name which will be used for attribute viewing.
Note:
Default returns false which means no special template.

Definition at line 88 of file ezbinaryfilehandler.php.

static eZBinaryFileHandler::instance ( identifier = false) [static]

Returns a shared instance of the eZBinaryFileHandler class pr $handlerName as defined in file.ini[BinaryFileSettings]Handler.

Parameters:
string | false$identifierUses file.ini[BinaryFileSettings]Handler if false
Returns:
eZBinaryFileHandler

Definition at line 244 of file ezbinaryfilehandler.php.

Referenced by eZFilePassthroughHandler\dispositionType(), eZBinaryFileType\fileHandler(), and eZFilePassthroughHandler\handleFileDownload().

eZBinaryFileHandler::storedFilename ( &$  binary,
returnMimeData = false 
)

Figures out the filename from the binary object $binary. Currently supports eZBinaryFile, eZMedia and eZImageAliasHandler.

Returns:
false if no file was found.
Parameters:
$returnMimeDataIf this is set to true then it will return a mime structure, otherwise it returns the filename.
Deprecated:

Definition at line 101 of file ezbinaryfilehandler.php.

eZBinaryFileHandler::viewTemplate ( contentobjectAttribute)
Returns:
the suffix for the template name which will be used for attribute viewing.
Note:
Default returns false which means no special template.

Reimplemented in eZFileDirectHandler.

Definition at line 68 of file ezbinaryfilehandler.php.


Member Data Documentation

eZBinaryFileHandler::$Info

Definition at line 271 of file ezbinaryfilehandler.php.

Definition at line 27 of file ezbinaryfilehandler.php.

Definition at line 24 of file ezbinaryfilehandler.php.

Definition at line 29 of file ezbinaryfilehandler.php.

Referenced by downloadType().

Definition at line 30 of file ezbinaryfilehandler.php.

Referenced by downloadType().


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