|
eZ Publish
[trunk]
|
The class eZBinaryFileType handles files and association with content objects. More...
Inheritance diagram for eZBinaryFileType:
Collaboration diagram for eZBinaryFileType:Public Member Functions | |
| checkFileUploads () | |
| customObjectAttributeHTTPAction ($http, $action, $contentObjectAttribute, $parameters) | |
| deleteStoredObjectAttribute ($contentObjectAttribute, $version=null) | |
| editTemplate ($contentobjectAttribute) | |
| eZBinaryFileType () | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| fileHandler () | |
| fromString ($objectAttribute, $string) | |
| handleDownload ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| hasStoredFileInformation ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| informationTemplate ($contentobjectAttribute) | |
| initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| insertHTTPFile ($object, $objectVersion, $objectLanguage, $objectAttribute, $httpFile, $mimeData, &$result) | |
| insertRegularFile ($object, $objectVersion, $objectLanguage, $objectAttribute, $filePath, &$result) | |
| isHTTPFileInsertionSupported () | |
| isIndexable () | |
| isRegularFileInsertionSupported () | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($contentObjectAttribute) | |
| serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| serializeContentObjectAttribute ($package, $objectAttribute) | |
| storedFileInformation ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| storeObjectAttribute ($contentObjectAttribute) | |
| supportsBatchInitializeObjectAttribute () | |
| title ($contentObjectAttribute, $name="original_filename") | |
| toString ($objectAttribute) | |
| trashStoredObjectAttribute ($contentObjectAttribute, $version=null) | |
| unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| unserializeContentObjectAttribute ($package, $objectAttribute, $attributeNode) | |
| validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| viewTemplate ($contentobjectAttribute) | |
Public Attributes | |
| const | DATA_TYPE_STRING = "ezbinaryfile" |
| const | MAX_FILESIZE_FIELD = 'data_int1' |
| const | MAX_FILESIZE_VARIABLE = '_ezbinaryfile_max_filesize_' |
Private Member Functions | |
| isDeletingFile (eZHTTPTool $http, eZContentObjectAttribute $contentObjectAttribute) | |
| Checks if current HTTP request is asking for current binary file deletion. | |
The class eZBinaryFileType handles files and association with content objects.
Definition at line 18 of file ezbinaryfiletype.php.
Checks if file uploads are enabled, if not it gives a warning.
Definition at line 219 of file ezbinaryfiletype.php.
Referenced by customObjectAttributeHTTPAction(), fetchObjectAttributeHTTPInput(), and validateObjectAttributeHTTPInput().
| eZBinaryFileType::customObjectAttributeHTTPAction | ( | $ | http, |
| $ | action, | ||
| $ | objectAttribute, | ||
| $ | parameters | ||
| ) |
Executes a custom action for an object attribute which was defined on the web page.
Reimplemented from eZDataType.
Definition at line 357 of file ezbinaryfiletype.php.
| eZBinaryFileType::deleteStoredObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | version = null |
||
| ) |
Delete stored attribute
Reimplemented from eZDataType.
Definition at line 163 of file ezbinaryfiletype.php.
Referenced by customObjectAttributeHTTPAction().
| eZBinaryFileType::editTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 61 of file ezbinaryfiletype.php.
Definition at line 26 of file ezbinaryfiletype.php.
| eZBinaryFileType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 540 of file ezbinaryfiletype.php.
| eZBinaryFileType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post var integer input and stores it in the data instance.
Reimplemented from eZDataType.
Definition at line 285 of file ezbinaryfiletype.php.
Definition at line 35 of file ezbinaryfiletype.php.
Referenced by editTemplate(), informationTemplate(), and viewTemplate().
| eZBinaryFileType::fromString | ( | $ | objectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 637 of file ezbinaryfiletype.php.
| eZBinaryFileType::handleDownload | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Updates download count for binary file.
Reimplemented from eZDataType.
Definition at line 520 of file ezbinaryfiletype.php.
| eZBinaryFileType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 563 of file ezbinaryfiletype.php.
| eZBinaryFileType::hasStoredFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
We support file information
Reimplemented from eZDataType.
Definition at line 497 of file ezbinaryfiletype.php.
| eZBinaryFileType::informationTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 79 of file ezbinaryfiletype.php.
| eZBinaryFileType::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets value according to current version
Reimplemented from eZDataType.
Definition at line 92 of file ezbinaryfiletype.php.
| eZBinaryFileType::insertHTTPFile | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | httpFile, | ||
| $ | mimeData, | ||
| &$ | result | ||
| ) |
Inserts the file using the eZBinaryFile class.
Reimplemented from eZDataType.
Definition at line 387 of file ezbinaryfiletype.php.
| eZBinaryFileType::insertRegularFile | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | filePath, | ||
| &$ | result | ||
| ) |
Inserts the file using the eZBinaryFile class.
Reimplemented from eZDataType.
Definition at line 438 of file ezbinaryfiletype.php.
Referenced by fromString().
| eZBinaryFileType::isDeletingFile | ( | eZHTTPTool $ | http, |
| eZContentObjectAttribute $ | contentObjectAttribute | ||
| ) | [private] |
Checks if current HTTP request is asking for current binary file deletion.
| eZHTTPTool | $http | |
| eZContentObjectAttribute | $contentObjectAttribute |
Definition at line 738 of file ezbinaryfiletype.php.
Referenced by fetchObjectAttributeHTTPInput().
HTTP file insertion is supported.
Reimplemented from eZDataType.
Definition at line 371 of file ezbinaryfiletype.php.
Reimplemented from eZDataType.
Definition at line 584 of file ezbinaryfiletype.php.
HTTP file insertion is supported.
Reimplemented from eZDataType.
Definition at line 379 of file ezbinaryfiletype.php.
| eZBinaryFileType::metaData | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 589 of file ezbinaryfiletype.php.
| eZBinaryFileType::objectAttributeContent | ( | $ | objectAttribute | ) |
Returns the content data for the given content object attribute.
Reimplemented from eZDataType.
Definition at line 572 of file ezbinaryfiletype.php.
| eZBinaryFileType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 601 of file ezbinaryfiletype.php.
| eZBinaryFileType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
| package | |
| objectAttribute | content attribute |
Reimplemented from eZDataType.
Definition at line 651 of file ezbinaryfiletype.php.
| eZBinaryFileType::storedFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Extracts file information for the binaryfile entry.
Reimplemented from eZDataType.
Definition at line 506 of file ezbinaryfiletype.php.
| eZBinaryFileType::storeObjectAttribute | ( | $ | contentObjectAttribute | ) |
Does nothing, since the file has been stored. See fetchObjectAttributeHTTPInput for the actual storing.
Reimplemented from eZDataType.
Definition at line 353 of file ezbinaryfiletype.php.
Reimplemented from eZDataType.
Definition at line 727 of file ezbinaryfiletype.php.
| eZBinaryFileType::title | ( | $ | contentObjectAttribute, |
| $ | name = "original_filename" |
||
| ) |
Returns the object title.
Reimplemented from eZDataType.
Definition at line 552 of file ezbinaryfiletype.php.
| eZBinaryFileType::toString | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 623 of file ezbinaryfiletype.php.
| eZBinaryFileType::trashStoredObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | version = null |
||
| ) |
The object is being moved to trash, do any necessary changes to the attribute. Rename file and update db row with new name, so that access to the file using old links no longer works.
Reimplemented from eZDataType.
Definition at line 112 of file ezbinaryfiletype.php.
| eZBinaryFileType::unserializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Extracts values from the attribute parameters and sets it in the class attribute.
Reimplemented from eZDataType.
Definition at line 611 of file ezbinaryfiletype.php.
| eZBinaryFileType::unserializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute, | ||
| $ | attributeNode | ||
| ) |
Unserialize contentobject attribute
| package | |
| objectAttribute | contentobject attribute object |
| attributeNode | ezdomnode object |
Reimplemented from eZDataType.
Definition at line 674 of file ezbinaryfiletype.php.
| eZBinaryFileType::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Validates the input and returns true if the input was valid for this datatype.
Reimplemented from eZDataType.
Definition at line 241 of file ezbinaryfiletype.php.
| eZBinaryFileType::viewTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 43 of file ezbinaryfiletype.php.
| const eZBinaryFileType::DATA_TYPE_STRING = "ezbinaryfile" |
Definition at line 24 of file ezbinaryfiletype.php.
| const eZBinaryFileType::MAX_FILESIZE_FIELD = 'data_int1' |
Definition at line 20 of file ezbinaryfiletype.php.
| const eZBinaryFileType::MAX_FILESIZE_VARIABLE = '_ezbinaryfile_max_filesize_' |
Definition at line 22 of file ezbinaryfiletype.php.