kernel/classes/ezdatatype.php

Show: inherited
Table of Contents

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

Package: kernel

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

Propertypublic  $DataTypeString= ''
Details
Type
n/a
Propertypublic  $Name= ''
Details
Type
n/a

Methods

methodpublicallowedTypes( ) : void
static

methodpublicattribute(  $attr ) : void

Parameters
Name Type Description
$attr
methodpublicattributes( ) : void

methodpublicbatchInitializeObjectAttributeData(  $classAttribute ) : void

Parameters
Name Type Description
$classAttribute
methodpublicclassAttributeContent(  $classAttribute ) : void

Parameters
Name Type Description
$classAttribute
methodpublicclassAttributeRemovableInformation(  $classAttribute,  $includeAll = true ) : void

Parameters
Name Type Description
$classAttribute
$includeAll
methodpublicclassDisplayInformation(  $classAttribute,  $mergeInfo = false ) : void

Parameters
Name Type Description
$classAttribute
$mergeInfo
methodpubliccleanDBDataBeforeImport( ) : void

methodpubliccloneClassAttribute(  $oldClassAttribute,  $newClassAttribute ) : void

Parameters
Name Type Description
$oldClassAttribute
$newClassAttribute
methodpubliccontentActionList( \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

Parameters
Name Type Description
$classAttribute \eZContentClassAttribute
Returns
Type Description
array
methodpubliccreate(  $dataTypeString ) : void
static

Parameters
Name Type Description
$dataTypeString
methodpubliccreateContentObjectAttributeDOMNode(  $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

Parameters
Name Type Description
$objectAttribute
methodpubliccustomClassAttributeHTTPAction(  $http,  $action,  $classAttribute ) : void

Parameters
Name Type Description
$http
$action
$classAttribute
methodpubliccustomObjectAttributeHTTPAction(  $http,  $action,  $objectAttribute,  $parameters ) : void

Parameters
Name Type Description
$http
$action
$objectAttribute
$parameters
methodpubliccustomSorting( ) : void

methodpubliccustomSortingSQL(  $params ) : void

Parameters
Name Type Description
$params
methodpublicdeleteStoredClassAttribute(  $classAttribute,  $version = null ) : void

Parameters
Name Type Description
$classAttribute
$version
methodpublicdeleteStoredObjectAttribute(  $objectAttribute,  $version = null ) : void

Parameters
Name Type Description
$objectAttribute
$version
methodpublicdiff(  $old,  $new,  $options = false ) : void

Parameters
Name Type Description
$old
$new
$options
methodpubliceZDataType(  $dataTypeString,  $name,  $properties = array() ) : void

Parameters
Name Type Description
$dataTypeString
$name
$properties
methodpubliceditTemplate(  $contentobjectAttribute ) : void

Parameters
Name Type Description
$contentobjectAttribute
methodpublicfetchActionValue(  $action,  $actionName,  $value ) : void

Parameters
Name Type Description
$action
$actionName
$value
methodpublicfetchClassAttributeHTTPInput(  $http,  $base,  $classAttribute ) : void

Parameters
Name Type Description
$http
$base
$classAttribute
methodpublicfetchCollectionAttributeHTTPInput(  $collection,  $collectionAttribute,  $http,  $base,  $objectAttribute ) : void

Parameters
Name Type Description
$collection
$collectionAttribute
$http
$base
$objectAttribute
methodpublicfetchObjectAttributeHTTPInput(  $http,  $base,  $objectAttribute ) : void

Parameters
Name Type Description
$http
$base
$objectAttribute
methodpublicfixRelatedObjectItem(  $contentObjectAttribute,  $objectID,  $mode ) : void

Parameters
Name Type Description
$contentObjectAttribute
$objectID
$mode
methodpublicfixupClassAttributeHTTPInput(  $http,  $base,  $classAttribute ) : void

Parameters
Name Type Description
$http
$base
$classAttribute
methodpublicfixupCollectionAttributeHTTPInput(  $http,  $base,  $objectAttribute ) : void

Parameters
Name Type Description
$http
$base
$objectAttribute
methodpublicfixupObjectAttributeHTTPInput(  $http,  $base,  $objectAttribute ) : void

Parameters
Name Type Description
$http
$base
$objectAttribute
methodpublicfromString(  $objectAttribute,  $string ) : void

Parameters
Name Type Description
$objectAttribute
$string
methodpublicgetDBAExtensionFilePath( ) : void

methodpublicgetDBAFileName( ) : void

methodpublicgetDBAFilePath(  $checkExtensions = true ) : void

Parameters
Name Type Description
$checkExtensions
methodpublichandleCustomObjectHTTPActions(  $http,  $attributeDataBaseName,  $customActionAttributeArray,  $customActionParameters ) : void

Parameters
Name Type Description
$http
$attributeDataBaseName
$customActionAttributeArray
$customActionParameters
methodpublichandleDownload(  $object,  $objectVersion,  $objectLanguage,  $objectAttribute ) : void

Parameters
Name Type Description
$object
$objectVersion
$objectLanguage
$objectAttribute
methodpublichasAttribute(  $attr ) : void

Parameters
Name Type Description
$attr
methodpublichasInformationCollection( ) : void

methodpublichasObjectAttributeContent(  $contentObjectAttribute ) : void

Parameters
Name Type Description
$contentObjectAttribute
methodpublichasStoredFileInformation(  $object,  $objectVersion,  $objectLanguage,  $objectAttribute ) : void

Parameters
Name Type Description
$object
$objectVersion
$objectLanguage
$objectAttribute
methodpublicimportDBDataFromDBAFile(  $dbaFilePath = false ) : void

Parameters
Name Type Description
$dbaFilePath
methodpublicinformationTemplate(  $contentobjectAttribute ) : void

Parameters
Name Type Description
$contentobjectAttribute
methodpublicinitializeClassAttribute(  $classAttribute ) : void

Parameters
Name Type Description
$classAttribute
methodpublicinitializeObjectAttribute(  $objectAttribute,  $currentVersion,  $originalContentObjectAttribute ) : void

Parameters
Name Type Description
$objectAttribute
$currentVersion
$originalContentObjectAttribute
methodpublicinsertHTTPFile(  $object,  $objectVersion,  $objectLanguage,  $objectAttribute,  $httpFile,  $mimeData,  $result ) : void

Parameters
Name Type Description
$object
$objectVersion
$objectLanguage
$objectAttribute
$httpFile
$mimeData
$result
methodpublicinsertRegularFile(  $object,  $objectVersion,  $objectLanguage,  $objectAttribute,  $filePath,  $result ) : void

Parameters
Name Type Description
$object
$objectVersion
$objectLanguage
$objectAttribute
$filePath
$result
methodpublicinsertSimpleString(  $object,  $objectVersion,  $objectLanguage,  $objectAttribute,  $string,  $result ) : void

Parameters
Name Type Description
$object
$objectVersion
$objectLanguage
$objectAttribute
$string
$result
methodpublicisA( ) : void

methodpublicisAddToBasketValidationRequired( ) : void

methodpublicisClassAttributeRemovable(  $classAttribute ) : void

Parameters
Name Type Description
$classAttribute
methodpublicisHTTPFileInsertionSupported( ) : void

methodpublicisIndexable( ) : void

methodpublicisInformationCollector( ) : void

methodpublicisRegularFileInsertionSupported( ) : void

methodpublicisSimpleStringInsertionSupported( ) : void

methodpublicisTranslatable( ) : bool

Indicates if datatype supports being translated

Returns
Type Description
bool
methodpublicloadAndRegisterAllTypes( ) : void
static

methodpublicloadAndRegisterType(  $type ) : void
static

Parameters
Name Type Description
$type
methodpublicmetaData(  $contentObjectAttribute ) : void

Parameters
Name Type Description
$contentObjectAttribute
methodpublicobjectAttributeContent(  $objectAttribute ) : void

Parameters
Name Type Description
$objectAttribute
methodpublicobjectDisplayInformation(  $objectAttribute,  $mergeInfo = false ) : void

Parameters
Name Type Description
$objectAttribute
$mergeInfo
methodpubliconPublish(  $contentObjectAttribute,  $contentObject,  $publishedNodes ) : void

Parameters
Name Type Description
$contentObjectAttribute
$contentObject
$publishedNodes
methodpublicpostInitializeObjectAttribute(  $objectAttribute,  $currentVersion,  $originalContentObjectAttribute ) : void

Parameters
Name Type Description
$objectAttribute
$currentVersion
$originalContentObjectAttribute
methodpublicpostStore(  $objectAttribute ) : void

Parameters
Name Type Description
$objectAttribute
methodpublicpostUnserializeContentObjectAttribute(  $package,  $objectAttribute ) : void

Parameters
Name Type Description
$package
$objectAttribute
methodpublicpreStoreClassAttribute(  $classAttribute,  $version ) : void

Parameters
Name Type Description
$classAttribute
$version
methodpublicpreStoreDefinedClassAttribute( \eZContentClassAttribute $classAttribute ) : void

Parameters
Name Type Description
$classAttribute \eZContentClassAttribute

Content class attribute of the datatype

methodpublicpreStoreModifiedClassAttribute( \eZContentClassAttribute $classAttribute ) : void

Parameters
Name Type Description
$classAttribute \eZContentClassAttribute

Content class attribute of the datatype

methodpublicpreStoreVersionedClassAttribute( \eZContentClassAttribute $classAttribute, int $version ) : void

Hook function which is called before an content class attribute is stored

Parameters
Name Type Description
$classAttribute \eZContentClassAttribute

Content class attribute of the datatype

$version int

Version of the attribute to be stored

Details
See
\eZContentClassAttribute::storeVersioned()  
methodpublicproductOptionInformation(  $objectAttribute,  $optionID,  $productItem ) : void

Parameters
Name Type Description
$objectAttribute
$optionID
$productItem
methodpublicregister(  $dataTypeString,  $className ) : void
static

Parameters
Name Type Description
$dataTypeString
$className
methodpublicregisteredDataTypes( ) : void
static

methodpublicremoveRelatedObjectItem(  $contentObjectAttribute,  $objectID ) : void

Parameters
Name Type Description
$contentObjectAttribute
$objectID
methodpublicrepairContentObjectAttribute(  $contentObjectAttribute ) : void

Parameters
Name Type Description
$contentObjectAttribute
methodpublicrestoreTrashedObjectAttribute( \eZContentObjectAttribute $objectAttribute ) : void

Restores the content object attribute $objectAttribute from trash Default implementation does nothing

Parameters
Name Type Description
$objectAttribute \eZContentObjectAttribute
methodpublicresultTemplate(  $collectionAttribute ) : void

Parameters
Name Type Description
$collectionAttribute
methodpublicserializeContentClassAttribute(  $classAttribute,  $attributeNode,  $attributeParametersNode ) : void

Parameters
Name Type Description
$classAttribute
$attributeNode
$attributeParametersNode
methodpublicserializeContentObjectAttribute(  $package,  $objectAttribute ) : void

Parameters
Name Type Description
$package
$objectAttribute
methodpublicsortKey(  $objectAttribute ) : void

Parameters
Name Type Description
$objectAttribute
methodpublicsortKeyType( ) : void

methodpublicstoreClassAttribute(  $classAttribute,  $version ) : void

Parameters
Name Type Description
$classAttribute
$version
methodpublicstoreDefinedClassAttribute( \eZContentClassAttribute $classAttribute ) : void

Parameters
Name Type Description
$classAttribute \eZContentClassAttribute

Content class attribute of the datatype

Details
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.  
methodpublicstoreModifiedClassAttribute( \eZContentClassAttribute $classAttribute ) : void

Parameters
Name Type Description
$classAttribute \eZContentClassAttribute

Content class attribute of the datatype

Details
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.  
methodpublicstoreObjectAttribute(  $objectAttribute ) : void

Parameters
Name Type Description
$objectAttribute
methodpublicstoreVersionedClassAttribute( \eZContentClassAttribute $classAttribute, int $version ) : void

Parameters
Name Type Description
$classAttribute \eZContentClassAttribute

Content class attribute of the datatype

$version int

Version of the attribute to be stored

Details
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.  
methodpublicstoredFileInformation(  $object,  $objectVersion,  $objectLanguage,  $objectAttribute ) : void

Parameters
Name Type Description
$object
$objectVersion
$objectLanguage
$objectAttribute
methodpublicsupportsBatchInitializeObjectAttribute( ) : void

methodpublictemplateList( ) : void

methodpublictitle(  $objectAttribute,  $name = null ) : void

Parameters
Name Type Description
$objectAttribute
$name
methodpublictoString(  $objectAttribute ) : void

Parameters
Name Type Description
$objectAttribute
methodpublictrashStoredObjectAttribute(  $objectAttribute,  $version = null ) : void

Parameters
Name Type Description
$objectAttribute
$version
methodpublicunserializeContentClassAttribute(  $classAttribute,  $attributeNode,  $attributeParametersNode ) : void

Parameters
Name Type Description
$classAttribute
$attributeNode
$attributeParametersNode
methodpublicunserializeContentObjectAttribute(  $package,  $objectAttribute,  $attributeNode ) : void

Parameters
Name Type Description
$package
$objectAttribute
$attributeNode
methodpublicvalidateAddToBasket(  $objectAttribute,  $data,  $errors ) : void

Parameters
Name Type Description
$objectAttribute
$data
$errors
methodpublicvalidateClassAttributeHTTPInput(  $http,  $base,  $classAttribute ) : void

Parameters
Name Type Description
$http
$base
$classAttribute
methodpublicvalidateCollectionAttributeHTTPInput(  $http,  $base,  $objectAttribute ) : void

Parameters
Name Type Description
$http
$base
$objectAttribute
methodpublicvalidateObjectAttributeHTTPInput(  $http,  $base,  $objectAttribute ) : void

Parameters
Name Type Description
$http
$base
$objectAttribute
methodpublicviewTemplate(  $contentobjectAttribute ) : void

Parameters
Name Type Description
$contentobjectAttribute
Documentation was generated by DocBlox 0.18.1.