|
eZ Publish
[trunk]
|
The class eZImageType handles image accounts and association with content objects. More...
Inheritance diagram for eZImageType:
Collaboration diagram for eZImageType:Public Member Functions | |
| customObjectAttributeHTTPAction ($http, $action, $contentObjectAttribute, $parameters) | |
| deleteStoredObjectAttribute ($contentObjectAttribute, $version=null) | |
| eZImageType () | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| Fetch object attribute http input, override the ezDataType method This method is triggered when submiting a http form which includes Image class Image is stored into file system every time there is a file input and validation result is valid. | |
| fromString ($objectAttribute, $string) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| hasStoredFileInformation ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| insertHTTPFile ($object, $objectVersion, $objectLanguage, $objectAttribute, $httpFile, $mimeData, &$result) | |
| insertRegularFile ($object, $objectVersion, $objectLanguage, $objectAttribute, $filePath, &$result) | |
| isHTTPFileInsertionSupported () | |
| isRegularFileInsertionSupported () | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($contentObjectAttribute) | |
| onPublish ($contentObjectAttribute, $contentObject, $publishedNodes) | |
| restoreTrashedObjectAttribute ($contentObjectAttribute) | |
| Restores the content object attribute $objectAttribute from trash Default implementation does nothing. | |
| 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) | |
| Validate the object attribute input in http. | |
Public Attributes | |
| const | DATA_TYPE_STRING = "ezimage" |
| const | FILESIZE_FIELD = 'data_int1' |
| const | FILESIZE_VARIABLE = '_ezimage_max_filesize_' |
The class eZImageType handles image accounts and association with content objects.
Definition at line 20 of file ezimagetype.php.
| eZImageType::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 476 of file ezimagetype.php.
| eZImageType::deleteStoredObjectAttribute | ( | $ | objectAttribute, |
| $ | version = null |
||
| ) |
Clean up stored object attribute
Reimplemented from eZDataType.
Definition at line 176 of file ezimagetype.php.
Definition at line 26 of file ezimagetype.php.
| eZImageType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 464 of file ezimagetype.php.
| eZImageType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetch object attribute http input, override the ezDataType method This method is triggered when submiting a http form which includes Image class Image is stored into file system every time there is a file input and validation result is valid.
| $http | http object |
| $base | |
| $contentObjectAttribute | : the content object attribute being handled |
Reimplemented from eZDataType.
Definition at line 279 of file ezimagetype.php.
| eZImageType::fromString | ( | $ | objectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 611 of file ezimagetype.php.
| eZImageType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 510 of file ezimagetype.php.
| eZImageType::hasStoredFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
We support file information
Reimplemented from eZDataType.
Definition at line 401 of file ezimagetype.php.
| eZImageType::initializeObjectAttribute | ( | $ | objectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Initializes the object attribute with some data.
Reimplemented from eZDataType.
Definition at line 32 of file ezimagetype.php.
| eZImageType::insertHTTPFile | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | httpFile, | ||
| $ | mimeData, | ||
| &$ | result | ||
| ) |
Inserts the file using the Image Handler eZImageAliasHandler.
Reimplemented from eZDataType.
Definition at line 355 of file ezimagetype.php.
| eZImageType::insertRegularFile | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | filePath, | ||
| &$ | result | ||
| ) |
Inserts the file using the Image Handler eZImageAliasHandler.
Reimplemented from eZDataType.
Definition at line 378 of file ezimagetype.php.
HTTP file insertion is supported.
Reimplemented from eZDataType.
Definition at line 339 of file ezimagetype.php.
Regular file insertion is supported.
Reimplemented from eZDataType.
Definition at line 347 of file ezimagetype.php.
| eZImageType::metaData | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 525 of file ezimagetype.php.
| eZImageType::objectAttributeContent | ( | $ | objectAttribute | ) |
Returns the content data for the given content object attribute.
Reimplemented from eZDataType.
Definition at line 518 of file ezimagetype.php.
| eZImageType::onPublish | ( | $ | contentObjectAttribute, |
| $ | contentObject, | ||
| $ | publishedNodes | ||
| ) |
Performs necessary actions with attribute data after object is published, it means that you have access to published nodes.
Reimplemented from eZDataType.
Definition at line 430 of file ezimagetype.php.
| eZImageType::restoreTrashedObjectAttribute | ( | $ | objectAttribute | ) |
Restores the content object attribute $objectAttribute from trash Default implementation does nothing.
| eZContentObjectAttribute | $objectAttribute |
Reimplemented from eZDataType.
Definition at line 110 of file ezimagetype.php.
| eZImageType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 533 of file ezimagetype.php.
| eZImageType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
Reimplemented from eZDataType.
Definition at line 556 of file ezimagetype.php.
| eZImageType::storedFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Extracts file information for the image entry.
Reimplemented from eZDataType.
Definition at line 410 of file ezimagetype.php.
| eZImageType::storeObjectAttribute | ( | $ | objectAttribute | ) |
Stores the datatype data to the database which is related to the object attribute.
Reimplemented from eZDataType.
Definition at line 317 of file ezimagetype.php.
Reimplemented from eZDataType.
Definition at line 629 of file ezimagetype.php.
| eZImageType::title | ( | $ | contentObjectAttribute, |
| $ | name = 'original_filename' |
||
| ) |
Will return one of the following items from the original alias.
Reimplemented from eZDataType.
Definition at line 494 of file ezimagetype.php.
| eZImageType::toString | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 603 of file ezimagetype.php.
| eZImageType::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 45 of file ezimagetype.php.
| eZImageType::unserializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Extracts values from the attribute parameters and sets it in the class attribute.
Reimplemented from eZDataType.
Definition at line 544 of file ezimagetype.php.
| eZImageType::unserializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute, | ||
| $ | attributeNode | ||
| ) |
Unserialize contentobject attribute
| package | |
| objectAttribute | contentobject attribute object |
| attributeNode | ezdomnode object |
Reimplemented from eZDataType.
Definition at line 576 of file ezimagetype.php.
| eZImageType::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Validate the object attribute input in http.
If there is validation failure, there failure message will be put into $contentObjectAttribute->ValidationError
| $http,: | http object |
| $base,: | |
| $contentObjectAttribute,: | content object attribute being validated |
Reimplemented from eZDataType.
Definition at line 199 of file ezimagetype.php.
| const eZImageType::DATA_TYPE_STRING = "ezimage" |
Definition at line 24 of file ezimagetype.php.
| const eZImageType::FILESIZE_FIELD = 'data_int1' |
Definition at line 22 of file ezimagetype.php.
| const eZImageType::FILESIZE_VARIABLE = '_ezimage_max_filesize_' |
Definition at line 23 of file ezimagetype.php.