|
eZ Publish
[trunk]
|
Base class for content datatypes. More...
Inheritance diagram for eZDataType:Public Member Functions | |
| attribute ($attr) | |
| attributes () | |
| batchInitializeObjectAttributeData ($classAttribute) | |
| classAttributeContent ($classAttribute) | |
| classAttributeRemovableInformation ($classAttribute, $includeAll=true) | |
| classDisplayInformation ($classAttribute, $mergeInfo=false) | |
| cloneClassAttribute ($oldClassAttribute, $newClassAttribute) | |
| contentActionList ($classAttribute) | |
| Return content action(s) which can be performed on object containing the current datatype. | |
| createContentObjectAttributeDOMNode ($objectAttribute) | |
| Create empty content object attribute DOM node. | |
| customClassAttributeHTTPAction ($http, $action, $classAttribute) | |
| customObjectAttributeHTTPAction ($http, $action, $objectAttribute, $parameters) | |
| customSorting () | |
| customSortingSQL ($params) | |
| deleteStoredClassAttribute ($classAttribute, $version=null) | |
| deleteStoredObjectAttribute ($objectAttribute, $version=null) | |
| diff ($old, $new, $options=false) | |
| editTemplate ($contentobjectAttribute) | |
| eZDataType ($dataTypeString, $name, $properties=array()) | |
| fetchActionValue ($action, $actionName, &$value) | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchCollectionAttributeHTTPInput ($collection, $collectionAttribute, $http, $base, $objectAttribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $objectAttribute) | |
| fixRelatedObjectItem ($contentObjectAttribute, $objectID, $mode) | |
| fixupClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fixupCollectionAttributeHTTPInput ($http, $base, $objectAttribute) | |
| fixupObjectAttributeHTTPInput ($http, $base, $objectAttribute) | |
| fromString ($objectAttribute, $string) | |
| getDBAExtensionFilePath () | |
| getDBAFileName () | |
| getDBAFilePath ($checkExtensions=true) | |
| handleCustomObjectHTTPActions ($http, $attributeDataBaseName, $customActionAttributeArray, $customActionParameters) | |
| handleDownload ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| hasAttribute ($attr) | |
| hasInformationCollection () | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| hasStoredFileInformation ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| importDBDataFromDBAFile ($dbaFilePath=false) | |
| informationTemplate ($contentobjectAttribute) | |
| initializeClassAttribute ($classAttribute) | |
| initializeObjectAttribute ($objectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| insertHTTPFile ($object, $objectVersion, $objectLanguage, $objectAttribute, $httpFile, $mimeData, &$result) | |
| insertRegularFile ($object, $objectVersion, $objectLanguage, $objectAttribute, $filePath, &$result) | |
| insertSimpleString ($object, $objectVersion, $objectLanguage, $objectAttribute, $string, &$result) | |
| isA () | |
| isAddToBasketValidationRequired () | |
| isClassAttributeRemovable ($classAttribute) | |
| isHTTPFileInsertionSupported () | |
| isIndexable () | |
| isInformationCollector () | |
| isRegularFileInsertionSupported () | |
| isSimpleStringInsertionSupported () | |
| isTranslatable () | |
| Indicates if datatype supports being translated. | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($objectAttribute) | |
| objectDisplayInformation ($objectAttribute, $mergeInfo=false) | |
| onPublish ($contentObjectAttribute, $contentObject, $publishedNodes) | |
| postInitializeObjectAttribute ($objectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| postStore ($objectAttribute) | |
| postUnserializeContentObjectAttribute ($package, $objectAttribute) | |
| preStoreClassAttribute ($classAttribute, $version) | |
| preStoreDefinedClassAttribute ($classAttribute) | |
| preStoreModifiedClassAttribute ($classAttribute) | |
| preStoreVersionedClassAttribute ($classAttribute, $version) | |
| Hook function which is called before an content class attribute is stored. | |
| productOptionInformation ($objectAttribute, $optionID, $productItem) | |
| removeRelatedObjectItem ($contentObjectAttribute, $objectID) | |
| repairContentObjectAttribute ($contentObjectAttribute) | |
| restoreTrashedObjectAttribute ($objectAttribute) | |
| Restores the content object attribute $objectAttribute from trash Default implementation does nothing. | |
| resultTemplate (&$collectionAttribute) | |
| serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| serializeContentObjectAttribute ($package, $objectAttribute) | |
| sortKey ($objectAttribute) | |
| sortKeyType () | |
| storeClassAttribute ($classAttribute, $version) | |
| storeDefinedClassAttribute ($classAttribute) | |
| storedFileInformation ($object, $objectVersion, $objectLanguage, $objectAttribute) | |
| storeModifiedClassAttribute ($classAttribute) | |
| storeObjectAttribute ($objectAttribute) | |
| storeVersionedClassAttribute ($classAttribute, $version) | |
| supportsBatchInitializeObjectAttribute () | |
| templateList () | |
| title ($objectAttribute, $name=null) | |
| toString ($objectAttribute) | |
| trashStoredObjectAttribute ($objectAttribute, $version=null) | |
| unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| unserializeContentObjectAttribute ($package, $objectAttribute, $attributeNode) | |
| validateAddToBasket ($objectAttribute, $data, &$errors) | |
| validateClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| validateCollectionAttributeHTTPInput ($http, $base, $objectAttribute) | |
| validateObjectAttributeHTTPInput ($http, $base, $objectAttribute) | |
| viewTemplate ($contentobjectAttribute) | |
Static Public Member Functions | |
| static | allowedTypes () |
| static | create ($dataTypeString) |
| static | loadAndRegisterAllTypes () |
| static | loadAndRegisterType ($type) |
| static | register ($dataTypeString, $className) |
| static | registeredDataTypes () |
Public Attributes | |
| $DataTypeString | |
| The datatype string ID, used for uniquely identifying a datatype. | |
| $Name | |
| The descriptive name of the datatype, usually used for displaying to the user. | |
Private Member Functions | |
| cleanDBDataBeforeImport () | |
Base class for content datatypes.
Defines both the interface for datatypes as well as functions for registering, quering and fetching datatypes.
Each new datatype will inherit this class and define some functions as well as three templates. A datatype has three roles, it handles definition of content class attributes, editing of a content object attribute and viewing of a content object attribute. The content class attribute definition part is optional while object attribute edit and view must be implemented for the datatype to be usable.
If the datatype handles class attribute definition it must define one or more of these functions: storeClassAttribute, validateClassAttributeHTTPInput, fixupClassAttributeHTTPInput, fetchClassAttributeHTTPInput. See each function for more details. The class attribute definition usually defines the default data and/or the validation rules for an object attribute.
Object attribute editing must define these functions: storeObjectAttribute, validateObjectAttributeHTTPInput, fixupObjectAttributeHTTPInput, fetchObjectAttributeHTTPInput, initializeObjectAttribute. If the attribute wants to have a custom action it must implement the customObjectAttributeHTTPAction function. See each function for more details.
Each datatype initializes itself with a datatype string id (ezstring, ezinteger) and a descriptive name. The datatype string id must be unique for the whole system and should have a prefix, for instance we in eZ Systems use ez as our prefix.
Definition at line 45 of file ezdatatype.php.
| static eZDataType::allowedTypes | ( | ) | [static] |
Definition at line 1238 of file ezdatatype.php.
Referenced by loadAndRegisterAllTypes().
| eZDataType::attribute | ( | $ | attr | ) |
Definition at line 234 of file ezdatatype.php.
Definition at line 218 of file ezdatatype.php.
| eZDataType::batchInitializeObjectAttributeData | ( | $ | classAttribute | ) |
Reimplemented in eZXMLTextType, eZMultiOption2Type, eZDateTimeType, eZMatrixType, eZIntegerType, eZOptionType, eZTimeType, eZFloatType, eZStringType, eZDateType, eZRangeOptionType, eZBooleanType, and eZProductCategoryType.
Definition at line 1465 of file ezdatatype.php.
| eZDataType::classAttributeContent | ( | $ | classAttribute | ) |
Returns the content data for the given content class attribute.
Reimplemented in eZObjectRelationListType, eZObjectRelationType, eZISBNType, eZMatrixType, eZCountryType, eZDateTimeType, eZEnumType, eZSelectionType, eZMultiPriceType, and eZPriceType.
Definition at line 594 of file ezdatatype.php.
| eZDataType::classAttributeRemovableInformation | ( | $ | classAttribute, |
| $ | includeAll = true |
||
| ) |
If the call to isClassAttributeRemovable() returns false then this can be called to figure out why it cannot be removed, e.g to give information to the user.
false if no info is available| $includeAll | Controls whether the returned information will contain all sources for not being to remove or just the first that it finds. |
Reimplemented in eZUserType.
Definition at line 1040 of file ezdatatype.php.
Referenced by isClassAttributeRemovable().
| eZDataType::classDisplayInformation | ( | $ | classAttribute, |
| $ | mergeInfo = false |
||
| ) |
Will return information on how the datatype should be represented in the various display modes when used by a class.
If this method is reimplemented the implementor must call this method with the new info array as second parameter.
| $classAttribute | The content class attribute to return info for. |
| $mergeInfo | A structure that must match the returned array, or false to ignore. Any entries here will override the default. |
edit grouped_input - If true then the datatype has lots of input elements that should be grouped. (e.g. in a fieldset) ClassEditSettings/GroupedInput in datatype.ini is used to automatically determine this field and will override the default and datatype setting if used.view Definition at line 539 of file ezdatatype.php.
| eZDataType::cleanDBDataBeforeImport | ( | ) | [private] |
Used by updateDBDataByDBAFile() method Must return true if successfull, or false otherwise.
Reimplemented in eZISBNType.
Definition at line 1460 of file ezdatatype.php.
Referenced by importDBDataFromDBAFile().
| eZDataType::cloneClassAttribute | ( | $ | oldClassAttribute, |
| $ | newClassAttribute | ||
| ) |
Clones the date from the old class attribute to the new one.
Reimplemented in eZEnumType.
Definition at line 871 of file ezdatatype.php.
| eZDataType::contentActionList | ( | $ | classAttribute | ) |
Return content action(s) which can be performed on object containing the current datatype.
Return format is array of arrays with key 'name' and 'action'. 'action' can be mapped to url in datatype.ini
| eZContentClassAttribute | $classAttribute |
Reimplemented in eZMultiPriceType, and eZPriceType.
Definition at line 948 of file ezdatatype.php.
| static eZDataType::create | ( | $ | dataTypeString | ) | [static] |
Crates a datatype instance of the datatype string id $dataTypeString.
Definition at line 135 of file ezdatatype.php.
Referenced by eZMediaType\customObjectAttributeHTTPAction(), eZUserType\fetchObjectAttributeHTTPInput(), eZMediaType\fetchObjectAttributeHTTPInput(), eZBinaryFileType\fetchObjectAttributeHTTPInput(), eZUserType\fromString(), eZContentObjectPackageHandler\generateOverrideSettingsArray(), eZBinaryFileType\insertHTTPFile(), eZMediaType\insertHTTPFile(), eZBinaryFileType\insertRegularFile(), eZMediaType\insertRegularFile(), eZSubtreeSubscriptionType\onPublish(), eZObjectRelationListType\onPublish(), eZMediaType\postInitializeObjectAttribute(), eZURLType\postStore(), eZUserType\storeObjectAttribute(), eZPriceType\unserializeContentClassAttribute(), eZMultiPriceType\unserializeContentClassAttribute(), eZEnumType\unserializeContentClassAttribute(), eZUserType\unserializeContentObjectAttribute(), eZXMLTextType\unserializeContentObjectAttribute(), eZBinaryFileType\unserializeContentObjectAttribute(), and eZMediaType\unserializeContentObjectAttribute().
| eZDataType::createContentObjectAttributeDOMNode | ( | $ | objectAttribute | ) |
Create empty content object attribute DOM node.
The result is intended to be used in a datatype's serializeContentObjectAttribute() method.
Definition at line 1333 of file ezdatatype.php.
Referenced by eZSubtreeSubscriptionType\serializeContentObjectAttribute(), eZRangeOptionType\serializeContentObjectAttribute(), eZKeywordType\serializeContentObjectAttribute(), eZAuthorType\serializeContentObjectAttribute(), eZURLType\serializeContentObjectAttribute(), eZDateType\serializeContentObjectAttribute(), eZOptionType\serializeContentObjectAttribute(), eZTimeType\serializeContentObjectAttribute(), eZEnumType\serializeContentObjectAttribute(), eZMultiOptionType\serializeContentObjectAttribute(), eZMultiPriceType\serializeContentObjectAttribute(), eZMatrixType\serializeContentObjectAttribute(), eZUserType\serializeContentObjectAttribute(), eZXMLTextType\serializeContentObjectAttribute(), eZObjectRelationType\serializeContentObjectAttribute(), eZImageType\serializeContentObjectAttribute(), eZDateTimeType\serializeContentObjectAttribute(), eZIniSettingType\serializeContentObjectAttribute(), eZMultiOption2Type\serializeContentObjectAttribute(), eZBinaryFileType\serializeContentObjectAttribute(), eZMediaType\serializeContentObjectAttribute(), and eZObjectRelationListType\serializeContentObjectAttribute().
| eZDataType::customClassAttributeHTTPAction | ( | $ | http, |
| $ | action, | ||
| $ | classAttribute | ||
| ) |
Executes a custom action for a class attribute which was defined on the web page.
Reimplemented in eZObjectRelationListType, eZObjectRelationType, eZIdentifierType, eZMatrixType, eZEnumType, and eZISBNType.
Definition at line 763 of file ezdatatype.php.
| eZDataType::customObjectAttributeHTTPAction | ( | $ | http, |
| $ | action, | ||
| $ | objectAttribute, | ||
| $ | parameters | ||
| ) |
Executes a custom action for an object attribute which was defined on the web page.
Reimplemented in eZObjectRelationListType, eZXMLTextType, eZImageType, eZMediaType, eZBinaryFileType, eZObjectRelationType, eZMultiOption2Type, eZMultiOptionType, eZMultiPriceType, eZAuthorType, eZOptionType, and eZMatrixType.
Definition at line 844 of file ezdatatype.php.
Reimplemented in eZMultiPriceType.
Definition at line 1070 of file ezdatatype.php.
| eZDataType::customSortingSQL | ( | $ | params | ) |
Reimplemented in eZMultiPriceType.
Definition at line 1075 of file ezdatatype.php.
| eZDataType::deleteStoredClassAttribute | ( | $ | classAttribute, |
| $ | version = null |
||
| ) |
Clean up stored class attribute
Reimplemented in eZEnumType.
Definition at line 936 of file ezdatatype.php.
| eZDataType::deleteStoredObjectAttribute | ( | $ | objectAttribute, |
| $ | version = null |
||
| ) |
Clean up stored object attribute
Reimplemented in eZObjectRelationListType, eZXMLTextType, eZMultiPriceType, eZImageType, eZKeywordType, eZBinaryFileType, eZMediaType, eZEnumType, eZURLType, and eZUserType.
Definition at line 928 of file ezdatatype.php.
| eZDataType::diff | ( | $ | old, |
| $ | new, | ||
| $ | options = false |
||
| ) |
Method used by content diff system to retrieve changes in attributes. This method implements the default behaviour, which is to show old and new version values of the object.
Reimplemented in eZXMLTextType, eZIniSettingType, eZMultiPriceType, eZEnumType, eZCountryType, eZStringType, eZTextType, eZPackageType, eZProductCategoryType, and eZSubtreeSubscriptionType.
Definition at line 1352 of file ezdatatype.php.
| eZDataType::editTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented in eZMultiOption2Type, eZXMLTextType, and eZBinaryFileType.
Definition at line 98 of file ezdatatype.php.
| eZDataType::eZDataType | ( | $ | dataTypeString, |
| $ | name, | ||
| $ | properties = array() |
||
| ) |
Initializes the datatype with the string id $dataTypeString and the name $name.
Definition at line 51 of file ezdatatype.php.
Referenced by eZAuthorType\eZAuthorType(), eZBinaryFileType\eZBinaryFileType(), eZBooleanType\eZBooleanType(), eZCountryType\eZCountryType(), eZDateTimeType\eZDateTimeType(), eZDateType\eZDateType(), eZEmailType\eZEmailType(), eZEnumType\eZEnumType(), eZFloatType\eZFloatType(), eZIdentifierType\eZIdentifierType(), eZImageType\eZImageType(), eZIniSettingType\eZIniSettingType(), eZIntegerType\eZIntegerType(), eZISBNType\eZISBNType(), eZKeywordType\eZKeywordType(), eZMatrixType\eZMatrixType(), eZMediaType\eZMediaType(), eZMultiOption2Type\eZMultiOption2Type(), eZMultiOptionType\eZMultiOptionType(), eZMultiPriceType\eZMultiPriceType(), eZObjectRelationListType\eZObjectRelationListType(), eZObjectRelationType\eZObjectRelationType(), eZOptionType\eZOptionType(), eZPackageType\eZPackageType(), eZPriceType\eZPriceType(), eZProductCategoryType\eZProductCategoryType(), eZRangeOptionType\eZRangeOptionType(), eZSelectionType\eZSelectionType(), eZStringType\eZStringType(), eZSubtreeSubscriptionType\eZSubtreeSubscriptionType(), eZTextType\eZTextType(), eZTimeType\eZTimeType(), eZURLType\eZURLType(), eZUserType\eZUserType(), and eZXMLTextType\eZXMLTextType().
| eZDataType::fetchActionValue | ( | $ | action, |
| $ | actionName, | ||
| &$ | value | ||
| ) |
Matches the action against the action name $actionName and extracts the value from the action puts it into $value.
true if the action matched and a value was found, false otherwise. If no match is made or no value found the $value parameter is not modified. Definition at line 774 of file ezdatatype.php.
Referenced by eZObjectRelationListType\customObjectAttributeHTTPAction().
| eZDataType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZMultiOption2Type, eZImageType, eZDateTimeType, eZMultiOptionType, eZIntegerType, eZOptionType, eZTimeType, eZISBNType, eZMatrixType, eZStringType, eZEnumType, eZDateType, eZRangeOptionType, eZXMLTextType, eZObjectRelationType, eZIniSettingType, eZTextType, eZFloatType, eZIdentifierType, eZBooleanType, eZPackageType, eZMultiPriceType, eZKeywordType, eZPriceType, eZCountryType, and eZSelectionType.
Definition at line 755 of file ezdatatype.php.
| eZDataType::fetchCollectionAttributeHTTPInput | ( | $ | collection, |
| $ | collectionAttribute, | ||
| $ | http, | ||
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Fetches the HTTP collected information for the content object attribute.
Reimplemented in eZCountryType, eZIntegerType, eZDateTimeType, eZSelectionType, eZMultiOptionType, eZOptionType, eZStringType, eZDateType, eZTimeType, eZEmailType, eZTextType, eZBooleanType, and eZProductCategoryType.
Definition at line 836 of file ezdatatype.php.
| eZDataType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Fetches the HTTP input for the content object attribute.
Reimplemented in eZBinaryFileType, eZImageType, eZMediaType, eZIniSettingType, eZXMLTextType, eZCountryType, eZISBNType, eZAuthorType, eZUserType, eZIntegerType, eZObjectRelationListType, eZSelectionType, eZMultiPriceType, eZMultiOptionType, eZOptionType, eZStringType, eZPriceType, eZEnumType, eZMatrixType, eZDateTimeType, eZURLType, eZTextType, eZBooleanType, eZEmailType, eZDateType, eZMultiOption2Type, eZKeywordType, eZTimeType, eZSubtreeSubscriptionType, eZRangeOptionType, eZObjectRelationType, eZProductCategoryType, eZFloatType, eZIdentifierType, and eZPackageType.
Definition at line 807 of file ezdatatype.php.
| eZDataType::fixRelatedObjectItem | ( | $ | contentObjectAttribute, |
| $ | objectID, | ||
| $ | mode | ||
| ) |
Fixes objects with given ID in the relations list according to what is done with object
Reimplemented in eZObjectRelationListType.
Definition at line 1322 of file ezdatatype.php.
| eZDataType::fixupClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Tries to do a fixup on the input text so that it's acceptable as class attribute input.
Reimplemented in eZObjectRelationListType, eZMediaType, eZIntegerType, eZFloatType, eZStringType, eZObjectRelationType, and eZKeywordType.
Definition at line 746 of file ezdatatype.php.
| eZDataType::fixupCollectionAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Tries to do a fixup on the input text so that it's acceptable as object attribute input.
Definition at line 826 of file ezdatatype.php.
| eZDataType::fixupObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Tries to do a fixup on the input text so that it's acceptable as object attribute input.
Reimplemented in eZFloatType, eZObjectRelationListType, and eZIntegerType.
Definition at line 799 of file ezdatatype.php.
| eZDataType::fromString | ( | $ | objectAttribute, |
| $ | string | ||
| ) |
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZImageType, eZIniSettingType, eZObjectRelationType, eZUserType, eZXMLTextType, eZMatrixType, eZIntegerType, eZMultiOptionType, eZISBNType, eZCountryType, eZOptionType, eZFloatType, eZMultiPriceType, eZSelectionType, eZDateTimeType, eZStringType, eZDateType, eZURLType, eZKeywordType, eZTimeType, eZPriceType, eZTextType, eZEmailType, eZAuthorType, eZBooleanType, eZProductCategoryType, eZRangeOptionType, eZSubtreeSubscriptionType, and eZIdentifierType.
Definition at line 1096 of file ezdatatype.php.
Returns dba-data file extension path (relative to the system root folder) for the specific datatype.
Definition at line 1387 of file ezdatatype.php.
Referenced by getDBAFilePath().
Returns dba-data file name of the specific datatype. This one is the default dba-data file name for all datatypes
Definition at line 1365 of file ezdatatype.php.
Referenced by getDBAExtensionFilePath(), and getDBAFilePath().
| eZDataType::getDBAFilePath | ( | $ | checkExtensions = true | ) |
Returns dba-data file path (relative to the system root folder) for the specific datatype.
Definition at line 1373 of file ezdatatype.php.
Referenced by importDBDataFromDBAFile().
| eZDataType::handleCustomObjectHTTPActions | ( | $ | http, |
| $ | attributeDataBaseName, | ||
| $ | customActionAttributeArray, | ||
| $ | customActionParameters | ||
| ) |
Takes care of custom action handling, this means checking if a custom action request must be sent to a contentobject attribute. This function is only useful for datatypes that must do custom action handling for sub objects and attributes.
Reimplemented in eZObjectRelationListType.
Definition at line 854 of file ezdatatype.php.
| eZDataType::handleDownload | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
This function is called when someone tries to download the file.
| $object | The contentobject in which the attribute is contained |
| $objectVersion | The current version of the object it is being worked on |
| $objectLanguage | The current language being worked on |
| $objectAttribute | The attribute which stored the file |
true if any action has been don or false if hasn't. Reimplemented in eZBinaryFileType.
Definition at line 387 of file ezdatatype.php.
| eZDataType::hasAttribute | ( | $ | attr | ) |
Definition at line 226 of file ezdatatype.php.
Definition at line 969 of file ezdatatype.php.
| eZDataType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZImageType, eZObjectRelationType, eZMultiOption2Type, eZEnumType, eZDateTimeType, eZXMLTextType, eZIniSettingType, eZISBNType, eZIntegerType, eZCountryType, eZSelectionType, eZTimeType, eZFloatType, eZMultiOptionType, eZStringType, eZMultiPriceType, eZDateType, eZOptionType, eZUserType, eZAuthorType, eZKeywordType, eZPriceType, eZBooleanType, eZURLType, eZTextType, eZEmailType, eZPackageType, eZRangeOptionType, eZProductCategoryType, eZIdentifierType, eZSubtreeSubscriptionType, and eZMatrixType.
Definition at line 586 of file ezdatatype.php.
| eZDataType::hasStoredFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Checks if the datatype supports returning file information.
| $object | The contentobject in which the attribute is contained |
| $objectVersion | The current version of the object it is being worked on |
| $objectLanguage | The current language being worked on |
| $objectAttribute | The attribute which stored the file |
true if file information is supported or false if it doesn't. Reimplemented in eZMediaType, eZBinaryFileType, and eZImageType.
Definition at line 370 of file ezdatatype.php.
| eZDataType::importDBDataFromDBAFile | ( | $ | dbaFilePath = false | ) |
Used by setup-wizard to update database data using per datatype dba file which is usually placed in share subfolder of the datatype and (share/db_data.dba) Any reimplementation of this method must return true if import is succesfully done, otherwise false.
Definition at line 1412 of file ezdatatype.php.
Referenced by eZISBNType\customClassAttributeHTTPAction().
| eZDataType::informationTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented in eZXMLTextType, and eZBinaryFileType.
Definition at line 111 of file ezdatatype.php.
| eZDataType::initializeClassAttribute | ( | $ | classAttribute | ) |
Initializes the class attribute with some data.
Reimplemented in eZObjectRelationListType, eZISBNType, eZDateTimeType, eZTimeType, eZDateType, eZIniSettingType, eZPriceType, eZXMLTextType, eZIdentifierType, eZMultiPriceType, eZEnumType, and eZTextType.
Definition at line 863 of file ezdatatype.php.
| eZDataType::initializeObjectAttribute | ( | $ | objectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Initializes the object attribute with some data.
Reimplemented in eZObjectRelationListType, eZMultiOption2Type, eZDateTimeType, eZMultiOptionType, eZOptionType, eZTimeType, eZSelectionType, eZMatrixType, eZIdentifierType, eZDateType, eZRangeOptionType, eZCountryType, eZIntegerType, eZIniSettingType, eZXMLTextType, eZAuthorType, eZMultiPriceType, eZPriceType, eZBinaryFileType, eZStringType, eZFloatType, eZTextType, eZBooleanType, eZPackageType, eZEnumType, eZKeywordType, eZURLType, eZObjectRelationType, eZEmailType, eZImageType, and eZProductCategoryType.
Definition at line 879 of file ezdatatype.php.
| eZDataType::insertHTTPFile | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | httpFile, | ||
| $ | mimeData, | ||
| &$ | result | ||
| ) |
Inserts the HTTP file $httpFile to the content object attribute $objectAttribute.
| $object | The contentobject in which the attribute is contained | |
| $objectVersion | The current version of the object it is being worked on | |
| $objectLanguage | The current language being worked on | |
| $objectAttribute | The attribute which will get the file | |
| $httpFile | Object of type eZHTTPFile which contains information on the uploaded file | |
| $mimeData | MIME-Type information on the file, can be used to figure out a storage name | |
| [out] | $result | Array which will be filled with information on the process, it will contain:
|
true if the file was stored correctly in the attribute or false if something failed. null (the default) if does not support HTTP files. null Reimplemented in eZMediaType, eZBinaryFileType, and eZImageType.
Definition at line 297 of file ezdatatype.php.
| eZDataType::insertRegularFile | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | filePath, | ||
| &$ | result | ||
| ) |
Inserts the file named $filePath to the content object attribute $objectAttribute.
| $object | The contentobject in which the attribute is contained | |
| $objectVersion | The current version of the object it is being worked on | |
| $objectLanguage | The current language being worked on | |
| $objectAttribute | The attribute which will get the file | |
| $filePath | Full path including the filename | |
| [out] | $result | Array which will be filled with information on the process, it will contain:
|
true if the file was stored correctly in the attribute or false if something failed. null (the default) if does not support HTTP files. null Reimplemented in eZMediaType, eZBinaryFileType, and eZImageType.
Definition at line 324 of file ezdatatype.php.
| eZDataType::insertSimpleString | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | string, | ||
| &$ | result | ||
| ) |
Inserts the string $string to the content object attribute $objectAttribute.
| $object | The contentobject in which the attribute is contained | |
| $objectVersion | The current version of the object it is being worked on | |
| $objectLanguage | The current language being worked on | |
| $objectAttribute | The attribute which will get the file | |
| $filePath | Full path including the filename | |
| [out] | $result | Array which will be filled with information on the process, it will contain:
|
true if the file was stored correctly in the attribute or false if something failed. null (the default) if does not support HTTP files. null Reimplemented in eZCountryType, eZStringType, and eZTextType.
Definition at line 351 of file ezdatatype.php.
| eZDataType::isA | ( | ) |
Definition at line 200 of file ezdatatype.php.
Referenced by createContentObjectAttributeDOMNode(), and serializeContentObjectAttribute().
Reimplemented in eZMultiOption2Type.
Definition at line 994 of file ezdatatype.php.
| eZDataType::isClassAttributeRemovable | ( | $ | classAttribute | ) |
Queries the datatype if the attribute containing this datatype can be removed from the class. This can be used by datatypes to ensure that very important datatypes that could cause system malfunction is not removed. The datatype will only need to reimplemented this if it wants to do some checking, the default returns true.
true if the class attribute can be removed or false. false, if it returns false or an empty 'list' it will return true. Definition at line 1022 of file ezdatatype.php.
true if the datatype support insertion of HTTP files or false (default) otherwise.Reimplemented in eZMediaType, eZBinaryFileType, and eZImageType.
Definition at line 251 of file ezdatatype.php.
Reimplemented in eZObjectRelationListType, eZBinaryFileType, eZObjectRelationType, eZXMLTextType, eZIntegerType, eZCountryType, eZEnumType, eZSelectionType, eZMatrixType, eZISBNType, eZStringType, eZUserType, eZAuthorType, eZDateTimeType, eZDateType, eZKeywordType, eZTextType, eZIdentifierType, eZPackageType, eZBooleanType, eZEmailType, eZMultiOptionType, eZProductCategoryType, and eZMultiOption2Type.
Definition at line 986 of file ezdatatype.php.
Referenced by eZDataType().
Reimplemented in eZXMLTextType, eZOptionType, eZCountryType, eZIntegerType, eZSelectionType, eZStringType, eZDateTimeType, eZTimeType, eZDateType, eZTextType, eZEmailType, eZBooleanType, and eZProductCategoryType.
Definition at line 1048 of file ezdatatype.php.
Referenced by eZDataType().
true if the datatype support insertion of files or false (default) otherwise.Reimplemented in eZMediaType, eZBinaryFileType, and eZImageType.
Definition at line 261 of file ezdatatype.php.
true if the datatype support insertion of simple strings or false (default) otherwise.Reimplemented in eZCountryType, eZStringType, and eZTextType.
Definition at line 271 of file ezdatatype.php.
Indicates if datatype supports being translated.
Definition at line 210 of file ezdatatype.php.
| static eZDataType::loadAndRegisterAllTypes | ( | ) | [static] |
Definition at line 1250 of file ezdatatype.php.
Referenced by eZStepCreateSites\initializePackage().
| static eZDataType::loadAndRegisterType | ( | $ | type | ) | [static] |
Definition at line 1259 of file ezdatatype.php.
Referenced by create(), eZUser\isUserObject(), and loadAndRegisterAllTypes().
| eZDataType::metaData | ( | $ | contentObjectAttribute | ) |
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZImageType, eZObjectRelationType, eZIntegerType, eZISBNType, eZUserType, eZEnumType, eZCountryType, eZXMLTextType, eZTimeType, eZFloatType, eZSelectionType, eZDateTimeType, eZStringType, eZDateType, eZURLType, eZIdentifierType, eZTextType, eZEmailType, eZRangeOptionType, eZPackageType, eZBooleanType, eZAuthorType, eZMultiOptionType, eZKeywordType, eZOptionType, eZMatrixType, eZProductCategoryType, eZPriceType, and eZMultiOption2Type.
Definition at line 1085 of file ezdatatype.php.
| eZDataType::objectAttributeContent | ( | $ | objectAttribute | ) |
Returns the content data for the given content object attribute.
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZImageType, eZIntegerType, eZIniSettingType, eZObjectRelationType, eZXMLTextType, eZISBNType, eZFloatType, eZCountryType, eZUserType, eZStringType, eZDateTimeType, eZSelectionType, eZEnumType, eZBooleanType, eZURLType, eZMultiPriceType, eZDateType, eZTimeType, eZTextType, eZEmailType, eZPackageType, eZPriceType, eZKeywordType, eZMultiOptionType, eZProductCategoryType, eZOptionType, eZAuthorType, eZRangeOptionType, eZMatrixType, eZIdentifierType, and eZMultiOption2Type.
Definition at line 577 of file ezdatatype.php.
| eZDataType::objectDisplayInformation | ( | $ | objectAttribute, |
| $ | mergeInfo = false |
||
| ) |
Will return information on how the datatype should be represented in the various display modes when used by an object.
If this method is reimplemented the implementor must call this method with the new info array as second parameter.
| $objectAttribute | The content object attribute to return info for. |
| $mergeInfo | A structure that must match the returned array, or false to ignore. Any entries here will override the default. |
edit grouped_input - If true then the datatype has lots of input elements that should be grouped. (e.g. in a fieldset) EditSettings/GroupedInput in datatype.ini is used to automatically determine this fieldview collection grouped_input - If true then the datatype has lots of input elements that should be grouped. (e.g. in a fieldset) CollectionSettings/GroupedInput in datatype.ini is used to automatically determine this field and will override the default and datatype setting if used.result Reimplemented in eZEnumType, and eZObjectRelationType.
Definition at line 472 of file ezdatatype.php.
| eZDataType::onPublish | ( | $ | contentObjectAttribute, |
| $ | contentObject, | ||
| $ | publishedNodes | ||
| ) |
Performs necessary actions with attribute data after object is published, it means that you have access to published nodes.
Reimplemented in eZObjectRelationListType, eZImageType, eZIniSettingType, eZIdentifierType, eZXMLTextType, and eZSubtreeSubscriptionType.
Definition at line 622 of file ezdatatype.php.
| eZDataType::postInitializeObjectAttribute | ( | $ | objectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Initializes the object attribute with some data after object attribute is already stored. It means that for initial version you allready have an attribute_id and you can store data somewhere using this id.
Reimplemented in eZXMLTextType, eZMultiPriceType, and eZMediaType.
Definition at line 896 of file ezdatatype.php.
| eZDataType::postStore | ( | $ | objectAttribute | ) |
Reimplemented in eZURLType.
Definition at line 903 of file ezdatatype.php.
| eZDataType::postUnserializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
Reimplemented in eZObjectRelationListType, eZXMLTextType, and eZObjectRelationType.
Definition at line 1233 of file ezdatatype.php.
| eZDataType::preStoreClassAttribute | ( | $ | classAttribute, |
| $ | version | ||
| ) |
Similar to the storeClassAttribute but is called before the attribute itself is stored and can be used to set values in the class attribute.
Reimplemented in eZObjectRelationListType, eZIdentifierType, eZMatrixType, eZISBNType, eZObjectRelationType, and eZCountryType.
Definition at line 633 of file ezdatatype.php.
Referenced by preStoreDefinedClassAttribute(), and preStoreModifiedClassAttribute().
| eZDataType::preStoreDefinedClassAttribute | ( | $ | classAttribute | ) |
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
Reimplemented in eZIdentifierType.
Definition at line 697 of file ezdatatype.php.
Referenced by preStoreVersionedClassAttribute().
| eZDataType::preStoreModifiedClassAttribute | ( | $ | classAttribute | ) |
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
Definition at line 705 of file ezdatatype.php.
Referenced by preStoreVersionedClassAttribute().
| eZDataType::preStoreVersionedClassAttribute | ( | $ | classAttribute, |
| $ | version | ||
| ) |
Hook function which is called before an content class attribute is stored.
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
| int | $version | Version of the attribute to be stored |
Definition at line 717 of file ezdatatype.php.
| eZDataType::productOptionInformation | ( | $ | objectAttribute, |
| $ | optionID, | ||
| $ | productItem | ||
| ) |
Fetches the product option information for option with ID $optionID and returns this information. This will be called from the basket when a new product with an option is added, it is then up to the specific datatype to return proper data. It will also be used to recalcuate prices.
| $objectAttribute | The attribute that the datatype controls. |
| $optionID | The ID of the option which information should be returned from. |
| $productItem | The product item object which contains the option, is available for reading only. |
false if no price is used. If the option could not be found it should return false, if not supported it should return null. Reimplemented in eZMultiOption2Type, eZMultiOptionType, eZOptionType, and eZRangeOptionType.
Definition at line 438 of file ezdatatype.php.
| static eZDataType::register | ( | $ | dataTypeString, |
| $ | className | ||
| ) | [static] |
Registers the datatype with string id $dataTypeString and class name $className. The class name is used for instantiating the class and should be in lowercase letters.
Definition at line 189 of file ezdatatype.php.
| static eZDataType::registeredDataTypes | ( | ) | [static] |
Definition at line 163 of file ezdatatype.php.
Referenced by eZStepCreateSites\initializePackage().
| eZDataType::removeRelatedObjectItem | ( | $ | contentObjectAttribute, |
| $ | objectID | ||
| ) |
Removes objects with given ID from the relations list
Reimplemented in eZObjectRelationListType, and eZObjectRelationType.
Definition at line 1314 of file ezdatatype.php.
| eZDataType::repairContentObjectAttribute | ( | $ | contentObjectAttribute | ) |
Tries to do a repair on the content object attribute $contentObjectAttribute and returns true if it succeeds.
false if it fails or null if it is not supported to do a repair. Definition at line 887 of file ezdatatype.php.
| eZDataType::restoreTrashedObjectAttribute | ( | $ | objectAttribute | ) |
Restores the content object attribute $objectAttribute from trash Default implementation does nothing.
| eZContentObjectAttribute | $objectAttribute |
Reimplemented in eZImageType.
Definition at line 920 of file ezdatatype.php.
| eZDataType::resultTemplate | ( | &$ | collectionAttribute | ) |
Definition at line 125 of file ezdatatype.php.
| eZDataType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented in eZObjectRelationListType, eZMediaType, eZMultiOption2Type, eZBinaryFileType, eZImageType, eZObjectRelationType, eZXMLTextType, eZDateTimeType, eZEnumType, eZIntegerType, eZMatrixType, eZMultiOptionType, eZIniSettingType, eZSelectionType, eZIdentifierType, eZOptionType, eZMultiPriceType, eZFloatType, eZTimeType, eZStringType, eZDateType, eZPriceType, eZTextType, eZRangeOptionType, eZBooleanType, and eZPackageType.
Definition at line 1122 of file ezdatatype.php.
| eZDataType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
| package | |
| objectAttribute | content attribute |
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZMultiOption2Type, eZIniSettingType, eZDateTimeType, eZImageType, eZObjectRelationType, eZXMLTextType, eZUserType, eZMatrixType, eZMultiPriceType, eZMultiOptionType, eZEnumType, eZTimeType, eZOptionType, eZDateType, eZURLType, eZAuthorType, eZKeywordType, eZRangeOptionType, and eZSubtreeSubscriptionType.
Definition at line 1143 of file ezdatatype.php.
| eZDataType::sortKey | ( | $ | objectAttribute | ) |
Reimplemented in eZDateTimeType, eZIntegerType, eZCountryType, eZSelectionType, eZObjectRelationType, eZIdentifierType, eZStringType, eZDateType, eZEmailType, eZPriceType, eZTimeType, eZPackageType, eZBooleanType, and eZProductCategoryType.
Definition at line 1056 of file ezdatatype.php.
Reimplemented in eZDateTimeType, eZCountryType, eZIntegerType, eZSelectionType, eZObjectRelationType, eZIdentifierType, eZStringType, eZDateType, eZEmailType, eZTimeType, eZPriceType, eZPackageType, eZBooleanType, and eZProductCategoryType.
Definition at line 1065 of file ezdatatype.php.
| eZDataType::storeClassAttribute | ( | $ | classAttribute, |
| $ | version | ||
| ) |
Stores the datatype data to the database which is related to the class attribute. The $version parameter determines which version is currently being stored, 0 is the real version while 1 is the temporary version.
Reimplemented in eZMediaType, eZFloatType, eZEnumType, eZIntegerType, eZStringType, eZURLType, eZKeywordType, and eZMatrixType.
Definition at line 650 of file ezdatatype.php.
| eZDataType::storeDefinedClassAttribute | ( | $ | classAttribute | ) |
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
Reimplemented in eZMediaType, eZEnumType, eZStringType, eZURLType, and eZKeywordType.
Definition at line 661 of file ezdatatype.php.
Referenced by storeVersionedClassAttribute().
| eZDataType::storedFileInformation | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute | ||
| ) |
Returns file information for the filed stored by the attribute.
| $object | The contentobject in which the attribute is contained |
| $objectVersion | The current version of the object it is being worked on |
| $objectLanguage | The current language being worked on |
| $objectAttribute | The attribute which stored the file |
false (default) if no information could be found. The structure must contain:The structure can contain:
Reimplemented in eZMediaType, eZBinaryFileType, and eZImageType.
Definition at line 415 of file ezdatatype.php.
| eZDataType::storeModifiedClassAttribute | ( | $ | classAttribute | ) |
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
Reimplemented in eZEnumType.
Definition at line 670 of file ezdatatype.php.
Referenced by storeVersionedClassAttribute().
| eZDataType::storeObjectAttribute | ( | $ | objectAttribute | ) |
Stores the datatype data to the database which is related to the object attribute.
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZImageType, eZISBNType, eZCountryType, eZXMLTextType, eZIntegerType, eZUserType, eZEnumType, eZStringType, eZURLType, eZFloatType, eZEmailType, eZObjectRelationType, eZTextType, eZMultiOptionType, eZOptionType, eZAuthorType, eZKeywordType, eZRangeOptionType, eZPackageType, eZMultiPriceType, eZPriceType, eZIdentifierType, eZMatrixType, eZMultiOption2Type, and eZBooleanType.
Definition at line 608 of file ezdatatype.php.
| eZDataType::storeVersionedClassAttribute | ( | $ | classAttribute, |
| $ | version | ||
| ) |
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
| int | $version | Version of the attribute to be stored |
Definition at line 680 of file ezdatatype.php.
Reimplemented in eZObjectRelationListType, eZMediaType, eZXMLTextType, eZBinaryFileType, eZMultiOption2Type, eZObjectRelationType, eZImageType, eZDateTimeType, eZMultiPriceType, eZMatrixType, eZIntegerType, eZCountryType, eZSelectionType, eZOptionType, eZISBNType, eZTimeType, eZFloatType, eZURLType, eZStringType, eZDateType, eZPriceType, eZAuthorType, eZKeywordType, eZRangeOptionType, eZTextType, eZBooleanType, eZEmailType, and eZProductCategoryType.
Definition at line 1470 of file ezdatatype.php.
Can be called to figure out if a datatype has certain special templates that it relies on. This can for instance be used to figure out which override templates to include in a package.
false is returned it means there are no relations to any templates. Reimplemented in eZXMLTextType.
Definition at line 1112 of file ezdatatype.php.
| eZDataType::title | ( | $ | objectAttribute, |
| $ | name = null |
||
| ) |
Returns the title of the current type, this is to form the title of the object.
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZImageType, eZObjectRelationType, eZDateTimeType, eZXMLTextType, eZIniSettingType, eZIntegerType, eZISBNType, eZCountryType, eZSelectionType, eZEnumType, eZFloatType, eZTimeType, eZMultiOptionType, eZStringType, eZMultiPriceType, eZDateType, eZOptionType, eZAuthorType, eZUserType, eZURLType, eZTextType, eZKeywordType, eZBooleanType, eZMatrixType, eZIdentifierType, eZPriceType, eZEmailType, eZProductCategoryType, eZPackageType, and eZRangeOptionType.
Definition at line 978 of file ezdatatype.php.
| eZDataType::toString | ( | $ | objectAttribute | ) |
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZImageType, eZIniSettingType, eZObjectRelationType, eZXMLTextType, eZUserType, eZMatrixType, eZIntegerType, eZISBNType, eZCountryType, eZMultiOptionType, eZFloatType, eZOptionType, eZSelectionType, eZMultiPriceType, eZDateTimeType, eZStringType, eZDateType, eZKeywordType, eZURLType, eZTimeType, eZPriceType, eZTextType, eZEmailType, eZAuthorType, eZBooleanType, eZProductCategoryType, eZRangeOptionType, eZSubtreeSubscriptionType, and eZIdentifierType.
Definition at line 1092 of file ezdatatype.php.
| eZDataType::trashStoredObjectAttribute | ( | $ | objectAttribute, |
| $ | version = null |
||
| ) |
Do any necessary changes to stored object attribute when moving an object to trash.
Reimplemented in eZBinaryFileType, eZMediaType, and eZImageType.
Definition at line 911 of file ezdatatype.php.
| eZDataType::unserializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Extracts values from the attribute parameters and sets it in the class attribute.
Reimplemented in eZObjectRelationListType, eZMediaType, eZMultiOption2Type, eZBinaryFileType, eZImageType, eZObjectRelationType, eZDateTimeType, eZXMLTextType, eZEnumType, eZMatrixType, eZIntegerType, eZIniSettingType, eZMultiOptionType, eZSelectionType, eZMultiPriceType, eZIdentifierType, eZOptionType, eZFloatType, eZTimeType, eZStringType, eZDateType, eZPriceType, eZTextType, eZRangeOptionType, eZBooleanType, and eZPackageType.
Definition at line 1133 of file ezdatatype.php.
| eZDataType::unserializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute, | ||
| $ | attributeNode | ||
| ) |
Unserialize contentobject attribute
| package | |
| objectAttribute | contentobject attribute object |
| attributeNode | ezdomnode object |
Reimplemented in eZObjectRelationListType, eZMediaType, eZBinaryFileType, eZMultiOption2Type, eZIniSettingType, eZXMLTextType, eZDateTimeType, eZObjectRelationType, eZImageType, eZUserType, eZMatrixType, eZMultiPriceType, eZMultiOptionType, eZEnumType, eZTimeType, eZOptionType, eZDateType, eZURLType, eZAuthorType, eZKeywordType, eZRangeOptionType, and eZSubtreeSubscriptionType.
Definition at line 1195 of file ezdatatype.php.
| eZDataType::validateAddToBasket | ( | $ | objectAttribute, |
| $ | data, | ||
| &$ | errors | ||
| ) |
Validates the input for an object attribute during add to basket process and returns a validation state as defined in eZInputValidator.
Reimplemented in eZMultiOption2Type.
Definition at line 1003 of file ezdatatype.php.
| eZDataType::validateClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Validates the input for a class attribute and returns a validation state as defined in eZInputValidator.
Reimplemented in eZObjectRelationListType, eZMediaType, eZIntegerType, eZEnumType, eZFloatType, eZStringType, eZURLType, eZObjectRelationType, eZKeywordType, eZIdentifierType, eZIniSettingType, and eZSelectionType.
Definition at line 736 of file ezdatatype.php.
| eZDataType::validateCollectionAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Validates the input for an object attribute and returns a validation state as defined in eZInputValidator.
Reimplemented in eZCountryType, eZIntegerType, eZSelectionType, eZDateTimeType, eZDateType, eZStringType, eZTimeType, eZEmailType, eZTextType, eZBooleanType, and eZOptionType.
Definition at line 816 of file ezdatatype.php.
| eZDataType::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Validates the input for an object attribute and returns a validation state as defined in eZInputValidator.
Reimplemented in eZBinaryFileType, eZXMLTextType, eZImageType, eZCountryType, eZEnumType, eZMediaType, eZSelectionType, eZIntegerType, eZFloatType, eZStringType, eZDateTimeType, eZTextType, eZURLType, eZKeywordType, eZEmailType, eZBooleanType, eZOptionType, eZIdentifierType, eZUserType, eZMultiOption2Type, eZDateType, eZIniSettingType, eZMultiOptionType, eZProductCategoryType, eZObjectRelationType, eZTimeType, eZPackageType, eZObjectRelationListType, eZMatrixType, eZMultiPriceType, eZPriceType, eZISBNType, eZAuthorType, and eZRangeOptionType.
Definition at line 789 of file ezdatatype.php.
| eZDataType::viewTemplate | ( | $ | contentobjectAttribute | ) |
Reimplemented in eZXMLTextType, and eZBinaryFileType.
Definition at line 85 of file ezdatatype.php.
| eZDataType::$DataTypeString |
The datatype string ID, used for uniquely identifying a datatype.
Definition at line 1477 of file ezdatatype.php.
| eZDataType::$Name |
The descriptive name of the datatype, usually used for displaying to the user.
Definition at line 1479 of file ezdatatype.php.