eZPublishCommunityProject(LegacyStack)  2013.9
eZDateTimeType Class Reference

Stores a date and time value. More...

+ Inheritance diagram for eZDateTimeType:
+ Collaboration diagram for eZDateTimeType:

Public Member Functions

 batchInitializeObjectAttributeData ($classAttribute)
 
 classAttributeContent ($classAttribute)
 
 contentObjectArrayXMLMap ()
 
 defaultClassAttributeContent ()
 
 eZDateTimeType ()
 
 fetchClassAttributeHTTPInput ($http, $base, $classAttribute)
 
 fetchCollectionAttributeHTTPInput ($collection, $collectionAttribute, $http, $base, $contentObjectAttribute)
 
 fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute)
 
 fromString ($contentObjectAttribute, $string)
 
 hasObjectAttributeContent ($contentObjectAttribute)
 
 initializeClassAttribute ($classAttribute)
 
 initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute)
 
 isIndexable ()
 
 isInformationCollector ()
 
 metaData ($contentObjectAttribute)
 
 objectAttributeContent ($contentObjectAttribute)
 
 parseXML ($xmlText)
 
 serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode)
 
 serializeContentObjectAttribute ($package, $objectAttribute)
 
 sortKey ($contentObjectAttribute)
 
 sortKeyType ()
 
 supportsBatchInitializeObjectAttribute ()
 
 title ($contentObjectAttribute, $name=null)
 
 toString ($contentObjectAttribute)
 
 unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode)
 
 unserializeContentObjectAttribute ($package, $objectAttribute, $attributeNode)
 
 validateCollectionAttributeHTTPInput ($http, $base, $contentObjectAttribute)
 
 validateDateTimeHTTPInput ($day, $month, $year, $hour, $minute, $second, $contentObjectAttribute)
 
 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)
 
 restoreTrashedObjectAttribute ($objectAttribute)
 Restores the content object attribute $objectAttribute from trash Default implementation does nothing. More...
 
 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 ADJUSTMENT_FIELD = 'data_text5'
 
const DATA_TYPE_STRING = 'ezdatetime'
 
const DEFAULT_ADJUSTMENT = 2
 
const DEFAULT_CURRENT_DATE = 1
 
const DEFAULT_EMTPY = 0
 
const DEFAULT_FIELD = 'data_int1'
 
const USE_SECONDS_FIELD = 'data_int2'
 
- 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 ()
 

Detailed Description

Stores a date and time value.

Member Function Documentation

eZDateTimeType::batchInitializeObjectAttributeData (   $classAttribute)
eZDateTimeType::classAttributeContent (   $classAttribute)
eZDateTimeType::contentObjectArrayXMLMap ( )
eZDateTimeType::defaultClassAttributeContent ( )

Referenced by classAttributeContent().

eZDateTimeType::eZDateTimeType ( )
eZDateTimeType::fetchClassAttributeHTTPInput (   $http,
  $base,
  $classAttribute 
)
eZDateTimeType::fetchCollectionAttributeHTTPInput (   $collection,
  $collectionAttribute,
  $http,
  $base,
  $contentObjectAttribute 
)

Fetches the http post variables for collected information

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

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

eZDateTimeType::fromString (   $contentObjectAttribute,
  $string 
)
eZDateTimeType::hasObjectAttributeContent (   $contentObjectAttribute)
eZDateTimeType::initializeClassAttribute (   $classAttribute)

Set class attribute value for template version

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

Sets the default value.

eZDateTimeType::isIndexable ( )
eZDateTimeType::isInformationCollector ( )
eZDateTimeType::metaData (   $contentObjectAttribute)

Returns the meta data used for storing search indeces.

eZDateTimeType::objectAttributeContent (   $contentObjectAttribute)

Returns the content.

eZDateTimeType::parseXML (   $xmlText)

Referenced by classAttributeContent().

eZDateTimeType::serializeContentClassAttribute (   $classAttribute,
  $attributeNode,
  $attributeParametersNode 
)
eZDateTimeType::serializeContentObjectAttribute (   $package,
  $objectAttribute 
)
Returns
a DOM representation of the content object attribute
eZDateTimeType::sortKey (   $contentObjectAttribute)
eZDateTimeType::sortKeyType ( )
eZDateTimeType::supportsBatchInitializeObjectAttribute ( )
eZDateTimeType::title (   $contentObjectAttribute,
  $name = null 
)

Returns the date.

eZDateTimeType::toString (   $contentObjectAttribute)
Returns
string representation of an contentobjectattribute data for simplified export
eZDateTimeType::unserializeContentClassAttribute (   $classAttribute,
  $attributeNode,
  $attributeParametersNode 
)
eZDateTimeType::unserializeContentObjectAttribute (   $package,
  $objectAttribute,
  $attributeNode 
)
eZDateTimeType::validateCollectionAttributeHTTPInput (   $http,
  $base,
  $contentObjectAttribute 
)
eZDateTimeType::validateDateTimeHTTPInput (   $day,
  $month,
  $year,
  $hour,
  $minute,
  $second,
  $contentObjectAttribute 
)

Private method only for use inside this class

Referenced by validateCollectionAttributeHTTPInput(), and validateObjectAttributeHTTPInput().

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

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

Member Data Documentation

const eZDateTimeType::ADJUSTMENT_FIELD = 'data_text5'
const eZDateTimeType::DATA_TYPE_STRING = 'ezdatetime'
const eZDateTimeType::DEFAULT_ADJUSTMENT = 2
const eZDateTimeType::DEFAULT_CURRENT_DATE = 1
const eZDateTimeType::DEFAULT_EMTPY = 0
const eZDateTimeType::DEFAULT_FIELD = 'data_int1'
const eZDateTimeType::USE_SECONDS_FIELD = 'data_int2'

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