eZ Publish  [trunk]
eZTimeType Class Reference

Stores a time value. More...

+ Inheritance diagram for eZTimeType:
+ Collaboration diagram for eZTimeType:

List of all members.

Public Member Functions

 batchInitializeObjectAttributeData ($classAttribute)
 eZTimeType ()
 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)
 isInformationCollector ()
 metaData ($contentObjectAttribute)
 objectAttributeContent ($contentObjectAttribute)
 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)
 validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute)
 validateTimeHTTPInput ($hours, $minute, $second, $contentObjectAttribute)

Public Attributes

const DATA_TYPE_STRING = "eztime"
const DEFAULT_CURRENT_DATE = 1
const DEFAULT_EMTPY = 0
const DEFAULT_FIELD = 'data_int1'
const USE_SECONDS_FIELD = 'data_int2'

Detailed Description

Stores a time value.

Definition at line 18 of file eztimetype.php.


Member Function Documentation

Reimplemented from eZDataType.

Definition at line 431 of file eztimetype.php.

Definition at line 26 of file eztimetype.php.

eZTimeType::fetchClassAttributeHTTPInput ( http,
base,
classAttribute 
)

Fetches the HTTP input for the content class attribute.

Note:
Default implementation does nothing.

Reimplemented from eZDataType.

Definition at line 291 of file eztimetype.php.

eZTimeType::fetchCollectionAttributeHTTPInput ( collection,
collectionAttribute,
http,
base,
contentObjectAttribute 
)

Fetches the http post variables for collected information

Reimplemented from eZDataType.

Definition at line 154 of file eztimetype.php.

eZTimeType::fetchObjectAttributeHTTPInput ( http,
base,
objectAttribute 
)

Fetches the HTTP input for the content object attribute.

Note:
Default implementation does nothing.

Reimplemented from eZDataType.

Definition at line 89 of file eztimetype.php.

eZTimeType::fromString ( contentObjectAttribute,
string 
)

Reimplemented from eZDataType.

Definition at line 234 of file eztimetype.php.

eZTimeType::hasObjectAttributeContent ( contentObjectAttribute)
Returns:
true if the datatype finds any content in the attribute $contentObjectAttribute.

Reimplemented from eZDataType.

Definition at line 331 of file eztimetype.php.

eZTimeType::initializeClassAttribute ( classAttribute)

Set class attribute value for template version

Reimplemented from eZDataType.

Definition at line 261 of file eztimetype.php.

eZTimeType::initializeObjectAttribute ( contentObjectAttribute,
currentVersion,
originalContentObjectAttribute 
)

Sets the default value.

Reimplemented from eZDataType.

Definition at line 271 of file eztimetype.php.

Returns:
true if the datatype can be used as an information collector

Reimplemented from eZDataType.

Definition at line 253 of file eztimetype.php.

eZTimeType::metaData ( contentObjectAttribute)

Returns the meta data used for storing search indeces.

Reimplemented from eZDataType.

Definition at line 310 of file eztimetype.php.

eZTimeType::objectAttributeContent ( contentObjectAttribute)

Returns the content.

Reimplemented from eZDataType.

Definition at line 183 of file eztimetype.php.

eZTimeType::serializeContentClassAttribute ( classAttribute,
attributeNode,
attributeParametersNode 
)

Adds the necessary dom structure to the attribute parameters.

Note:
The default is to add unsupported='true' to the attribute node, meaning that the datatype does not support serializing.

Reimplemented from eZDataType.

Definition at line 336 of file eztimetype.php.

eZTimeType::serializeContentObjectAttribute ( package,
objectAttribute 
)
Parameters:
package
contentattribute
Returns:
a DOM representation of the content object attribute

Reimplemented from eZDataType.

Definition at line 389 of file eztimetype.php.

eZTimeType::sortKey ( objectAttribute)
Returns:
the sort key for the datatype. This is used for sorting on attribute level.

Reimplemented from eZDataType.

Definition at line 202 of file eztimetype.php.

Returns:
the type of the sort key int|string False is returned if sorting is not supported

Reimplemented from eZDataType.

Definition at line 214 of file eztimetype.php.

Reimplemented from eZDataType.

Definition at line 426 of file eztimetype.php.

eZTimeType::title ( contentObjectAttribute,
name = null 
)

Returns the date.

Reimplemented from eZDataType.

Definition at line 318 of file eztimetype.php.

eZTimeType::toString ( contentObjectAttribute)
Returns:
string representation of an contentobjectattribute data for simplified export

Reimplemented from eZDataType.

Definition at line 223 of file eztimetype.php.

eZTimeType::unserializeContentClassAttribute ( classAttribute,
attributeNode,
attributeParametersNode 
)

Extracts values from the attribute parameters and sets it in the class attribute.

Note:
This function is called after the attribute has been stored and a second store is called after this function is done.

Reimplemented from eZDataType.

Definition at line 360 of file eztimetype.php.

eZTimeType::unserializeContentObjectAttribute ( package,
objectAttribute,
attributeNode 
)
Parameters:
package
contentobjectattribute object
ezdomnodeobject

Reimplemented from eZDataType.

Definition at line 410 of file eztimetype.php.

eZTimeType::validateCollectionAttributeHTTPInput ( http,
base,
objectAttribute 
)

Validates the input for an object attribute and returns a validation state as defined in eZInputValidator.

Note:
Default implementation does nothing and returns accepted.

Reimplemented from eZDataType.

Definition at line 117 of file eztimetype.php.

eZTimeType::validateObjectAttributeHTTPInput ( http,
base,
objectAttribute 
)

Validates the input for an object attribute and returns a validation state as defined in eZInputValidator.

Note:
Default implementation does nothing and returns accepted.

Reimplemented from eZDataType.

Definition at line 47 of file eztimetype.php.

eZTimeType::validateTimeHTTPInput ( hours,
minute,
second,
contentObjectAttribute 
)

Private method only for use inside this class

Definition at line 35 of file eztimetype.php.

Referenced by validateCollectionAttributeHTTPInput(), and validateObjectAttributeHTTPInput().


Member Data Documentation

const eZTimeType::DATA_TYPE_STRING = "eztime"

Definition at line 20 of file eztimetype.php.

Definition at line 24 of file eztimetype.php.

Definition at line 23 of file eztimetype.php.

const eZTimeType::DEFAULT_FIELD = 'data_int1'

Definition at line 21 of file eztimetype.php.

const eZTimeType::USE_SECONDS_FIELD = 'data_int2'

Definition at line 22 of file eztimetype.php.


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