|
eZ Publish
[trunk]
|
Interface for all binary file handlers. More...
Inheritance diagram for eZBinaryFileHandler: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' |
Interface for all binary file handlers.
Definition at line 22 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::attribute | ( | $ | attribute | ) |
Definition at line 53 of file ezbinaryfilehandler.php.
Definition at line 43 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::downloadFileObject | ( | $ | contentObject, |
| $ | contentObjectAttribute | ||
| ) |
Definition at line 145 of file ezbinaryfilehandler.php.
Referenced by downloadURL().
| eZBinaryFileHandler::downloadType | ( | $ | contentObject, |
| $ | contentObjectAttribute | ||
| ) |
Definition at line 160 of file ezbinaryfilehandler.php.
Referenced by downloadURL().
| eZBinaryFileHandler::downloadURL | ( | $ | contentObject, |
| $ | contentObjectAttribute | ||
| ) |
Definition at line 177 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::editTemplate | ( | $ | contentobjectAttribute | ) |
Definition at line 78 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::eZBinaryFileHandler | ( | $ | identifier, |
| $ | name, | ||
| $ | handleType | ||
| ) |
Definition at line 35 of file ezbinaryfilehandler.php.
Referenced by eZFileDirectHandler\eZFileDirectHandler(), and eZFilePassthroughHandler\eZFilePassthroughHandler().
| 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 137 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::hasAttribute | ( | $ | attribute | ) |
Definition at line 48 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::informationTemplate | ( | $ | contentobjectAttribute | ) |
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.
| string | false | $identifier | Uses file.ini[BinaryFileSettings]Handler if false |
Definition at line 244 of file ezbinaryfilehandler.php.
Referenced by eZFilePassthroughHandler\dispositionType(), eZBinaryFileType\fileHandler(), and eZFilePassthroughHandler\handleFileDownload().
Definition at line 232 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::storedFilename | ( | &$ | binary, |
| $ | returnMimeData = false |
||
| ) |
Figures out the filename from the binary object $binary. Currently supports eZBinaryFile, eZMedia and eZImageAliasHandler.
false if no file was found. | $returnMimeData | If this is set to true then it will return a mime structure, otherwise it returns the filename. |
Definition at line 101 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::viewTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented in eZFileDirectHandler.
Definition at line 68 of file ezbinaryfilehandler.php.
| eZBinaryFileHandler::$Info |
Definition at line 271 of file ezbinaryfilehandler.php.
| const eZBinaryFileHandler::HANDLE_ALL = 0x3 |
Definition at line 27 of file ezbinaryfilehandler.php.
| const eZBinaryFileHandler::HANDLE_DOWNLOAD = 0x2 |
Definition at line 25 of file ezbinaryfilehandler.php.
Referenced by eZFileDirectHandler\eZFileDirectHandler(), and eZFilePassthroughHandler\eZFilePassthroughHandler().
| const eZBinaryFileHandler::HANDLE_UPLOAD = 0x1 |
Definition at line 24 of file ezbinaryfilehandler.php.
| const eZBinaryFileHandler::RESULT_OK = 1 |
Definition at line 32 of file ezbinaryfilehandler.php.
Referenced by eZFileDirectHandler\handleFileDownload().
| const eZBinaryFileHandler::RESULT_UNAVAILABLE = 2 |
Definition at line 33 of file ezbinaryfilehandler.php.
Referenced by handleDownload(), and eZFilePassthroughHandler\handleFileDownload().
| const eZBinaryFileHandler::TYPE_FILE = 'file' |
Definition at line 29 of file ezbinaryfilehandler.php.
Referenced by downloadType().
| const eZBinaryFileHandler::TYPE_MEDIA = 'media' |
Definition at line 30 of file ezbinaryfilehandler.php.
Referenced by downloadType().