eZIntegerType Class Reference
[Kernel system]

A content datatype which handles integers. More...

Inheritance diagram for eZIntegerType:

eZDataType List of all members.

Public Methods

 validateObjectAttributeHTTPInput (&$http,$base,&$contentObjectAttribute)
 fixupObjectAttributeHTTPInput (&$http,$base,&$contentObjectAttribute)
 initializeObjectAttribute (&$contentObjectAttribute,$currentVersion,&$originalContentObjectAttribute)
 fetchObjectAttributeHTTPInput (&$http,$base,&$contentObjectAttribute)
 storeObjectAttribute (&$object_attribute)
 storeClassAttribute (&$attribute,$version)
 validateClassAttributeHTTPInput (&$http,$base,&$classAttribute)
 fixupClassAttributeHTTPInput (&$http,$base,&$classAttribute)
 fetchClassAttributeHTTPInput (&$http,$base,&$classAttribute)
objectAttributeContent (&$contentObjectAttribute)
 metaData ($contentObjectAttribute)
 title (&$contentObjectAttribute)
 isIndexable ()
serializeContentObjectAttribute ($objectAttribute)

Private Attributes

 IntegerValidator

Detailed Description

A content datatype which handles integers.

It provides the functionality to work as an integer and handles class definition input, object definition input and object viewing.

It uses the spare field data_int in a content object attribute for storing the attribute data.

Definition at line ezintegertype.php.


Member Function Documentation

eZIntegerType::fetchClassAttributeHTTPInput &$    http,
  base,
&$    classAttribute
 

Reimplemented for internal reasons; the API is not affected.

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

eZIntegerType::fetchObjectAttributeHTTPInput &$    http,
  base,
&$    contentObjectAttribute
 

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

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

eZIntegerType::fixupClassAttributeHTTPInput &$    http,
  base,
&$    classAttribute
 

Reimplemented for internal reasons; the API is not affected.

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

References IntegerValidator.

eZIntegerType::fixupObjectAttributeHTTPInput &$    http,
  base,
&$    contentObjectAttribute
 

Tries to do a fixup on the input text so that it's acceptable as object attribute input.

Note:
Default implementation does nothing.

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

eZIntegerType::initializeObjectAttribute &$    contentObjectAttribute,
  currentVersion,
&$    originalContentObjectAttribute
 

Sets the default value.

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

eZIntegerType::isIndexable  
 

Returns:
true if the datatype can be indexed

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

eZIntegerType::metaData   contentObjectAttribute
 

Returns the meta data used for storing search indeces.

Definition at line ezintegertype.php.

& eZIntegerType::objectAttributeContent &$    contentObjectAttribute
 

Returns the content.

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

& eZIntegerType::serializeContentObjectAttribute   objectAttribute
 

Returns:
a DOM representation of the content object attribute

Definition at line ezintegertype.php.

References eZDOMDocument::createAttributeNode().

eZIntegerType::storeClassAttribute &$    attribute,
  version
 

Stores the datatype data to the database which is related to the class attribute. The $version parameter determines which version is currently being stored, 0 is the real version while 1 is the temporary version.

Returns:
True if the value was stored correctly.
Note:
The method is entirely up to the datatype, for instance it could reuse the available types in the the attribute or store in a separate object.
See also:
fetchClassAttributeHTTPInput

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

References eZDebug::writeWarning().

eZIntegerType::storeObjectAttribute &$    object_attribute
 

Does nothing, the data is already present in the attribute.

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

eZIntegerType::title &$    contentObjectAttribute
 

Returns the integer value.

Definition at line ezintegertype.php.

eZIntegerType::validateClassAttributeHTTPInput &$    http,
  base,
&$    classAttribute
 

Reimplemented for internal reasons; the API is not affected.

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

References eZDebug::writeNotice().

eZIntegerType::validateObjectAttributeHTTPInput &$    http,
  base,
&$    contentObjectAttribute
 

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

Reimplemented from eZDataType.

Definition at line ezintegertype.php.

References IntegerValidator.


Member Data Documentation

eZIntegerType::IntegerValidator [private]
 

The integer value validator

Definition at line ezintegertype.php.

Referenced by validateObjectAttributeHTTPInput().


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

Exponential