|
eZ Publish
[4.2]
|
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) | |
| 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 40 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 411 of file ezimagetype.php.
| eZImageType::deleteStoredObjectAttribute | ( | $ | objectAttribute, |
| $ | version = null |
||
| ) |
Clean up stored object attribute
Reimplemented from eZDataType.
Definition at line 111 of file ezimagetype.php.
| eZImageType::eZImageType | ( | ) |
Definition at line 46 of file ezimagetype.php.
| eZImageType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 399 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 214 of file ezimagetype.php.
| eZImageType::fromString | ( | $ | objectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 546 of file ezimagetype.php.
| eZImageType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 445 of file ezimagetype.php.
| eZImageType::hasStoredFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
We support file information
Reimplemented from eZDataType.
Definition at line 336 of file ezimagetype.php.
| eZImageType::initializeObjectAttribute | ( | $ | objectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Initializes the object attribute with some data.
Reimplemented from eZDataType.
Definition at line 52 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 290 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 313 of file ezimagetype.php.
| eZImageType::isHTTPFileInsertionSupported | ( | ) |
HTTP file insertion is supported.
Reimplemented from eZDataType.
Definition at line 274 of file ezimagetype.php.
| eZImageType::isRegularFileInsertionSupported | ( | ) |
Regular file insertion is supported.
Reimplemented from eZDataType.
Definition at line 282 of file ezimagetype.php.
| eZImageType::metaData | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 460 of file ezimagetype.php.
| eZImageType::objectAttributeContent | ( | $ | objectAttribute | ) |
Returns the content data for the given content object attribute.
Reimplemented from eZDataType.
Definition at line 453 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 365 of file ezimagetype.php.
| eZImageType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 468 of file ezimagetype.php.
| eZImageType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
Reimplemented from eZDataType.
Definition at line 491 of file ezimagetype.php.
| eZImageType::storedFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Extracts file information for the image entry.
Reimplemented from eZDataType.
Definition at line 345 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 252 of file ezimagetype.php.
| eZImageType::supportsBatchInitializeObjectAttribute | ( | ) |
Reimplemented from eZDataType.
Definition at line 564 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 429 of file ezimagetype.php.
| eZImageType::toString | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 538 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 65 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 479 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 511 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 134 of file ezimagetype.php.
| const eZImageType::DATA_TYPE_STRING = "ezimage" |
Definition at line 44 of file ezimagetype.php.
| const eZImageType::FILESIZE_FIELD = 'data_int1' |
Definition at line 42 of file ezimagetype.php.
| const eZImageType::FILESIZE_VARIABLE = '_ezimage_max_filesize_' |
Definition at line 43 of file ezimagetype.php.