|
eZ Publish
[4.2]
|
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_' |
The class eZBinaryFileType handles files and association with content objects.
Definition at line 38 of file ezbinaryfiletype.php.
| eZBinaryFileType::checkFileUploads | ( | ) |
Checks if file uploads are enabled, if not it gives a warning.
Definition at line 239 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 372 of file ezbinaryfiletype.php.
| eZBinaryFileType::deleteStoredObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | version = null |
||
| ) |
Delete stored attribute
Reimplemented from eZDataType.
Definition at line 183 of file ezbinaryfiletype.php.
Referenced by customObjectAttributeHTTPAction().
| eZBinaryFileType::editTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 81 of file ezbinaryfiletype.php.
| eZBinaryFileType::eZBinaryFileType | ( | ) |
Definition at line 46 of file ezbinaryfiletype.php.
| eZBinaryFileType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 555 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 305 of file ezbinaryfiletype.php.
| eZBinaryFileType::fileHandler | ( | ) |
Definition at line 55 of file ezbinaryfiletype.php.
Referenced by editTemplate(), informationTemplate(), and viewTemplate().
| eZBinaryFileType::fromString | ( | $ | objectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 652 of file ezbinaryfiletype.php.
| eZBinaryFileType::handleDownload | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Updates download count for binary file.
Reimplemented from eZDataType.
Definition at line 535 of file ezbinaryfiletype.php.
| eZBinaryFileType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 578 of file ezbinaryfiletype.php.
| eZBinaryFileType::hasStoredFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
We support file information
Reimplemented from eZDataType.
Definition at line 512 of file ezbinaryfiletype.php.
| eZBinaryFileType::informationTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 99 of file ezbinaryfiletype.php.
| eZBinaryFileType::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets value according to current version
Reimplemented from eZDataType.
Definition at line 112 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 402 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 453 of file ezbinaryfiletype.php.
Referenced by fromString().
| eZBinaryFileType::isHTTPFileInsertionSupported | ( | ) |
HTTP file insertion is supported.
Reimplemented from eZDataType.
Definition at line 386 of file ezbinaryfiletype.php.
| eZBinaryFileType::isIndexable | ( | ) |
Reimplemented from eZDataType.
Definition at line 599 of file ezbinaryfiletype.php.
| eZBinaryFileType::isRegularFileInsertionSupported | ( | ) |
HTTP file insertion is supported.
Reimplemented from eZDataType.
Definition at line 394 of file ezbinaryfiletype.php.
| eZBinaryFileType::metaData | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 604 of file ezbinaryfiletype.php.
| eZBinaryFileType::objectAttributeContent | ( | $ | objectAttribute | ) |
Returns the content data for the given content object attribute.
Reimplemented from eZDataType.
Definition at line 587 of file ezbinaryfiletype.php.
| eZBinaryFileType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 616 of file ezbinaryfiletype.php.
| eZBinaryFileType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
| package | |
| objectAttribute | content attribute |
Reimplemented from eZDataType.
Definition at line 666 of file ezbinaryfiletype.php.
| eZBinaryFileType::storedFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Extracts file information for the binaryfile entry.
Reimplemented from eZDataType.
Definition at line 521 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 368 of file ezbinaryfiletype.php.
| eZBinaryFileType::supportsBatchInitializeObjectAttribute | ( | ) |
Reimplemented from eZDataType.
Definition at line 744 of file ezbinaryfiletype.php.
| eZBinaryFileType::title | ( | $ | contentObjectAttribute, |
| $ | name = "original_filename" |
||
| ) |
Returns the object title.
Reimplemented from eZDataType.
Definition at line 567 of file ezbinaryfiletype.php.
| eZBinaryFileType::toString | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 638 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 132 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 626 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 689 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 261 of file ezbinaryfiletype.php.
| eZBinaryFileType::viewTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 63 of file ezbinaryfiletype.php.
| const eZBinaryFileType::DATA_TYPE_STRING = "ezbinaryfile" |
Definition at line 44 of file ezbinaryfiletype.php.
| const eZBinaryFileType::MAX_FILESIZE_FIELD = 'data_int1' |
Definition at line 40 of file ezbinaryfiletype.php.
| const eZBinaryFileType::MAX_FILESIZE_VARIABLE = '_ezbinaryfile_max_filesize_' |
Definition at line 42 of file ezbinaryfiletype.php.