eZPublish  4.4
eZEnumType Class Reference
+ Inheritance diagram for eZEnumType:
+ Collaboration diagram for eZEnumType:

Public Member Functions

 classAttributeContent ($contentClassAttribute)
 
 cloneClassAttribute ($oldClassAttribute, $newClassAttribute)
 
 customClassAttributeHTTPAction ($http, $action, $contentClassAttribute)
 
 deleteStoredClassAttribute ($contentClassAttribute, $version=null)
 
 deleteStoredObjectAttribute ($contentObjectAttribute, $version=null)
 
 diff ($old, $new, $options=false)
 
 eZEnumType ()
 
 fetchClassAttributeHTTPInput ($http, $base, $contentClassAttribute)
 
 fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute)
 
 hasObjectAttributeContent ($contentObjectAttribute)
 
 initializeClassAttribute ($classAttribute)
 
 initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute)
 
 isIndexable ()
 
 metaData ($contentObjectAttribute)
 
 objectAttributeContent ($contentObjectAttribute)
 
 objectDisplayInformation ($objectAttribute, $mergeInfo=false)
 
 serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode)
 
 serializeContentObjectAttribute ($package, $contentObjectAttribute)
 
 storeClassAttribute ($contentClassAttribute, $version)
 
 storeDefinedClassAttribute ($contentClassAttribute)
 
 storeObjectAttribute ($contentObjectAttribute)
 
 title ($contentObjectAttribute, $name=null)
 
 unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode)
 
 unserializeContentObjectAttribute ($package, $objectAttribute, $attributeNode)
 
 validateClassAttributeHTTPInput ($http, $base, $contentClassAttribute)
 
 validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute)
 
- Public Member Functions inherited from eZDataType
 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. More...
 
 createContentObjectAttributeDOMNode ($objectAttribute)
 Create empty content object attribute DOM node. More...
 
 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. More...
 
 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. More...
 
 productOptionInformation ($objectAttribute, $optionID, $productItem)
 
 removeRelatedObjectItem ($contentObjectAttribute, $objectID)
 
 repairContentObjectAttribute ($contentObjectAttribute)
 
 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)
 

Public Attributes

const DATA_TYPE_STRING = 'ezenum'
 
const IS_MULTIPLE_FIELD = 'data_int1'
 
const IS_MULTIPLE_VARIABLE = '_ezenum_ismultiple_value_'
 
const IS_OPTION_FIELD = 'data_int2'
 
const IS_OPTION_VARIABLE = '_ezenum_isoption_value_'
 
- Public Attributes inherited from eZDataType
 $DataTypeString
 The datatype string ID, used for uniquely identifying a datatype. More...
 
 $Name
 The descriptive name of the datatype, usually used for displaying to the user. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from eZDataType
static allowedTypes ()
 
static create ($dataTypeString)
 
static loadAndRegisterAllTypes ()
 
static loadAndRegisterType ($type)
 
static register ($dataTypeString, $className)
 
static registeredDataTypes ()
 

Member Function Documentation

eZEnumType::classAttributeContent (   $contentClassAttribute)

Returns the content.

eZEnumType::cloneClassAttribute (   $oldClassAttribute,
  $newClassAttribute 
)
eZEnumType::customClassAttributeHTTPAction (   $http,
  $action,
  $contentClassAttribute 
)
eZEnumType::deleteStoredClassAttribute (   $contentClassAttribute,
  $version = null 
)

Delete stored class attribute

eZEnumType::deleteStoredObjectAttribute (   $contentObjectAttribute,
  $version = null 
)

Delete stored object attribute

Referenced by initializeObjectAttribute().

eZEnumType::diff (   $old,
  $new,
  $options = false 
)
eZEnumType::eZEnumType ( )

Constructor

eZEnumType::fetchClassAttributeHTTPInput (   $http,
  $base,
  $contentClassAttribute 
)

Fetches the http post var integer input and stores it in the data instance.

eZEnumType::fetchObjectAttributeHTTPInput (   $http,
  $base,
  $contentObjectAttribute 
)

Fetches the http post var integer input and stores it in the data instance.

eZEnumType::hasObjectAttributeContent (   $contentObjectAttribute)
eZEnumType::initializeClassAttribute (   $classAttribute)

Set class attribute value for template version

eZEnumType::initializeObjectAttribute (   $contentObjectAttribute,
  $currentVersion,
  $originalContentObjectAttribute 
)

Sets value according to current version

eZEnumType::isIndexable ( )
eZEnumType::metaData (   $contentObjectAttribute)

Returns the meta data used for storing search indeces.

eZEnumType::objectAttributeContent (   $contentObjectAttribute)

Returns actual the class attribute content.

Referenced by title().

eZEnumType::objectDisplayInformation (   $objectAttribute,
  $mergeInfo = false 
)

Sets grouped_input to true when checkboxes or radiobuttons are used.

eZEnumType::serializeContentClassAttribute (   $classAttribute,
  $attributeNode,
  $attributeParametersNode 
)
eZEnumType::serializeContentObjectAttribute (   $package,
  $contentObjectAttribute 
)
Returns
a DOM representation of the content object attribute
eZEnumType::storeClassAttribute (   $contentClassAttribute,
  $version 
)
eZEnumType::storeDefinedClassAttribute (   $contentClassAttribute)
eZEnumType::storeObjectAttribute (   $contentObjectAttribute)

Does nothing since it has been stored. See fetchObjectAttributeHTTPInput for the actual storing.

eZEnumType::title (   $contentObjectAttribute,
  $name = null 
)

Returns the object attribute title.

eZEnumType::unserializeContentClassAttribute (   $classAttribute,
  $attributeNode,
  $attributeParametersNode 
)
eZEnumType::unserializeContentObjectAttribute (   $package,
  $objectAttribute,
  $attributeNode 
)

Unserialize contentobject attribute

Parameters
package
contentobjectattribute object
ezdomnodeobject
eZEnumType::validateClassAttributeHTTPInput (   $http,
  $base,
  $contentClassAttribute 
)

Validates the input and returns true if the input was valid for this datatype.

eZEnumType::validateObjectAttributeHTTPInput (   $http,
  $base,
  $contentObjectAttribute 
)

Validates the input and returns true if the input was valid for this datatype.

Member Data Documentation

const eZEnumType::DATA_TYPE_STRING = 'ezenum'
const eZEnumType::IS_MULTIPLE_FIELD = 'data_int1'
const eZEnumType::IS_MULTIPLE_VARIABLE = '_ezenum_ismultiple_value_'
const eZEnumType::IS_OPTION_FIELD = 'data_int2'
const eZEnumType::IS_OPTION_VARIABLE = '_ezenum_isoption_value_'

The documentation for this class was generated from the following file: