kernel/classes/ezdatatype.php
File containing the eZDataType class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZDataType
File containing the eZDataType class.
- Children
- \eZPriceType
- \eZMultiOptionType
- \eZProductCategoryType
- \eZPackageType
- \eZRangeOptionType
- \eZUserType
- \eZIntegerType
- \eZSelectionType
- \eZStringType
- \eZBinaryFileType
- \eZMatrixType
- \eZBooleanType
- \eZAuthorType
- \eZSubtreeSubscriptionType
- \eZMultiOption2Type
- \eZMediaType
- \eZFloatType
- \eZXMLTextType
- \eZKeywordType
- \eZOptionType
- \eZObjectRelationListType
- \eZTimeType
- \eZMultiPriceType
- \eZEnumType
- \eZURLType
- \eZTextType
- \eZIdentifierType
- \eZDateTimeType
- \eZISBNType
- \eZImageType
- \eZEmailType
- \eZObjectRelationType
- \eZIniSettingType
- \eZDateType
- \eZCountryType
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Properties
Methods


batchInitializeObjectAttributeData(
$classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute |


classAttributeRemovableInformation(
$classAttribute, $includeAll
=
true
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | ||
$includeAll |


classDisplayInformation(
$classAttribute, $mergeInfo
=
false
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | ||
$mergeInfo |


cloneClassAttribute(
$oldClassAttribute, $newClassAttribute
)
:
void
Name | Type | Description |
---|---|---|
$oldClassAttribute | ||
$newClassAttribute |


contentActionList(
\eZContentClassAttribute $classAttribute
)
:
array
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
Name | Type | Description |
---|---|---|
$classAttribute | \eZContentClassAttribute |
Type | Description |
---|---|
array |


createContentObjectAttributeDOMNode(
$objectAttribute
)
:
void
Create empty content object attribute DOM node.
The result is intended to be used in a datatype's serializeContentObjectAttribute() method.
\return "Empty" DOM node
Name | Type | Description |
---|---|---|
$objectAttribute |


customClassAttributeHTTPAction(
$http, $action, $classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$action | ||
$classAttribute |


customObjectAttributeHTTPAction(
$http, $action, $objectAttribute, $parameters
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$action | ||
$objectAttribute | ||
$parameters |


deleteStoredClassAttribute(
$classAttribute, $version
=
null
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | ||
$version |


deleteStoredObjectAttribute(
$objectAttribute, $version
=
null
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$version |


eZDataType(
$dataTypeString, $name, $properties
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$dataTypeString | ||
$name | ||
$properties |


editTemplate(
$contentobjectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$contentobjectAttribute |


fetchActionValue(
$action, $actionName, $value
)
:
void
Name | Type | Description |
---|---|---|
$action | ||
$actionName | ||
$value |


fetchClassAttributeHTTPInput(
$http, $base, $classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$base | ||
$classAttribute |


fetchCollectionAttributeHTTPInput(
$collection, $collectionAttribute, $http, $base, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$collection | ||
$collectionAttribute | ||
$http | ||
$base | ||
$objectAttribute |


fetchObjectAttributeHTTPInput(
$http, $base, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$base | ||
$objectAttribute |


fixRelatedObjectItem(
$contentObjectAttribute, $objectID, $mode
)
:
void
Name | Type | Description |
---|---|---|
$contentObjectAttribute | ||
$objectID | ||
$mode |


fixupClassAttributeHTTPInput(
$http, $base, $classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$base | ||
$classAttribute |


fixupCollectionAttributeHTTPInput(
$http, $base, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$base | ||
$objectAttribute |


fixupObjectAttributeHTTPInput(
$http, $base, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$base | ||
$objectAttribute |


fromString(
$objectAttribute, $string
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$string |


handleCustomObjectHTTPActions(
$http, $attributeDataBaseName, $customActionAttributeArray, $customActionParameters
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$attributeDataBaseName | ||
$customActionAttributeArray | ||
$customActionParameters |


handleDownload(
$object, $objectVersion, $objectLanguage, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$object | ||
$objectVersion | ||
$objectLanguage | ||
$objectAttribute |


hasObjectAttributeContent(
$contentObjectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$contentObjectAttribute |


hasStoredFileInformation(
$object, $objectVersion, $objectLanguage, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$object | ||
$objectVersion | ||
$objectLanguage | ||
$objectAttribute |


importDBDataFromDBAFile(
$dbaFilePath
=
false
)
:
void
Name | Type | Description |
---|---|---|
$dbaFilePath |


informationTemplate(
$contentobjectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$contentobjectAttribute |


initializeObjectAttribute(
$objectAttribute, $currentVersion, $originalContentObjectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$currentVersion | ||
$originalContentObjectAttribute |


insertHTTPFile(
$object, $objectVersion, $objectLanguage, $objectAttribute, $httpFile, $mimeData, $result
)
:
void
Name | Type | Description |
---|---|---|
$object | ||
$objectVersion | ||
$objectLanguage | ||
$objectAttribute | ||
$httpFile | ||
$mimeData | ||
$result |


insertRegularFile(
$object, $objectVersion, $objectLanguage, $objectAttribute, $filePath, $result
)
:
void
Name | Type | Description |
---|---|---|
$object | ||
$objectVersion | ||
$objectLanguage | ||
$objectAttribute | ||
$filePath | ||
$result |


insertSimpleString(
$object, $objectVersion, $objectLanguage, $objectAttribute, $string, $result
)
:
void
Name | Type | Description |
---|---|---|
$object | ||
$objectVersion | ||
$objectLanguage | ||
$objectAttribute | ||
$string | ||
$result |


isClassAttributeRemovable(
$classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute |


isTranslatable(
)
:
bool
Indicates if datatype supports being translated
Type | Description |
---|---|
bool |


objectDisplayInformation(
$objectAttribute, $mergeInfo
=
false
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$mergeInfo |


onPublish(
$contentObjectAttribute, $contentObject, $publishedNodes
)
:
void
Name | Type | Description |
---|---|---|
$contentObjectAttribute | ||
$contentObject | ||
$publishedNodes |


postInitializeObjectAttribute(
$objectAttribute, $currentVersion, $originalContentObjectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$currentVersion | ||
$originalContentObjectAttribute |


postUnserializeContentObjectAttribute(
$package, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$package | ||
$objectAttribute |


preStoreClassAttribute(
$classAttribute, $version
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | ||
$version |


preStoreDefinedClassAttribute(
\eZContentClassAttribute $classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | \eZContentClassAttribute | Content class attribute of the datatype |


preStoreModifiedClassAttribute(
\eZContentClassAttribute $classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | \eZContentClassAttribute | Content class attribute of the datatype |


preStoreVersionedClassAttribute(
\eZContentClassAttribute $classAttribute, int $version
)
:
void
Hook function which is called before an content class attribute is stored
Name | Type | Description |
---|---|---|
$classAttribute | \eZContentClassAttribute | Content class attribute of the datatype |
$version | int | Version of the attribute to be stored |


productOptionInformation(
$objectAttribute, $optionID, $productItem
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$optionID | ||
$productItem |


register(
$dataTypeString, $className
)
:
void
Name | Type | Description |
---|---|---|
$dataTypeString | ||
$className |


removeRelatedObjectItem(
$contentObjectAttribute, $objectID
)
:
void
Name | Type | Description |
---|---|---|
$contentObjectAttribute | ||
$objectID |


repairContentObjectAttribute(
$contentObjectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$contentObjectAttribute |


restoreTrashedObjectAttribute(
\eZContentObjectAttribute $objectAttribute
)
:
void
Restores the content object attribute $objectAttribute from trash Default implementation does nothing
Name | Type | Description |
---|---|---|
$objectAttribute | \eZContentObjectAttribute |


serializeContentClassAttribute(
$classAttribute, $attributeNode, $attributeParametersNode
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | ||
$attributeNode | ||
$attributeParametersNode |


serializeContentObjectAttribute(
$package, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$package | ||
$objectAttribute |


storeClassAttribute(
$classAttribute, $version
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | ||
$version |


storeDefinedClassAttribute(
\eZContentClassAttribute $classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | \eZContentClassAttribute | Content class attribute of the datatype |
- Note
- Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.


storeModifiedClassAttribute(
\eZContentClassAttribute $classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | \eZContentClassAttribute | Content class attribute of the datatype |
- Note
- Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.


storeVersionedClassAttribute(
\eZContentClassAttribute $classAttribute, int $version
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | \eZContentClassAttribute | Content class attribute of the datatype |
$version | int | Version of the attribute to be stored |
- Note
- Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.


storedFileInformation(
$object, $objectVersion, $objectLanguage, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$object | ||
$objectVersion | ||
$objectLanguage | ||
$objectAttribute |


title(
$objectAttribute, $name
=
null
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$name |


trashStoredObjectAttribute(
$objectAttribute, $version
=
null
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$version |


unserializeContentClassAttribute(
$classAttribute, $attributeNode, $attributeParametersNode
)
:
void
Name | Type | Description |
---|---|---|
$classAttribute | ||
$attributeNode | ||
$attributeParametersNode |


unserializeContentObjectAttribute(
$package, $objectAttribute, $attributeNode
)
:
void
Name | Type | Description |
---|---|---|
$package | ||
$objectAttribute | ||
$attributeNode |


validateAddToBasket(
$objectAttribute, $data, $errors
)
:
void
Name | Type | Description |
---|---|---|
$objectAttribute | ||
$data | ||
$errors |


validateClassAttributeHTTPInput(
$http, $base, $classAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$base | ||
$classAttribute |


validateCollectionAttributeHTTPInput(
$http, $base, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$base | ||
$objectAttribute |


validateObjectAttributeHTTPInput(
$http, $base, $objectAttribute
)
:
void
Name | Type | Description |
---|---|---|
$http | ||
$base | ||
$objectAttribute |