|
eZ Publish
[4.2]
|
Stores a float value. More...
Inheritance diagram for eZFloatType:
Collaboration diagram for eZFloatType:Public Member Functions | |
| batchInitializeObjectAttributeData ($classAttribute) | |
| eZFloatType () | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| fixupClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fixupObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| fromString ($contentObjectAttribute, $string) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($contentObjectAttribute) | |
| serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| storeClassAttribute ($attribute, $version) | |
| storeObjectAttribute ($attribute) | |
| supportsBatchInitializeObjectAttribute () | |
| title ($contentObjectAttribute, $name=null) | |
| toString ($contentObjectAttribute) | |
| unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| validateClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
Public Attributes | |
| $FloatValidator | |
| The float value validator. | |
| const | DATA_TYPE_STRING = "ezfloat" |
| const | DEFAULT_FIELD = "data_float3" |
| const | DEFAULT_VARIABLE = "_ezfloat_default_value_" |
| const | HAS_MAX_VALUE = 2 |
| const | HAS_MIN_MAX_VALUE = 3 |
| const | HAS_MIN_VALUE = 1 |
| const | INPUT_STATE_FIELD = "data_float4" |
| const | MAX_FIELD = "data_float2" |
| const | MAX_VARIABLE = "_ezfloat_max_float_value_" |
| const | MIN_FIELD = "data_float1" |
| const | MIN_VARIABLE = "_ezfloat_min_float_value_" |
| const | NO_MIN_MAX_VALUE = 0 |
Stores a float value.
Definition at line 38 of file ezfloattype.php.
| eZFloatType::batchInitializeObjectAttributeData | ( | $ | classAttribute | ) |
Reimplemented from eZDataType.
Definition at line 417 of file ezfloattype.php.
| eZFloatType::eZFloatType | ( | ) |
Definition at line 53 of file ezfloattype.php.
| eZFloatType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 186 of file ezfloattype.php.
| eZFloatType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post var float input and stores it in the data instance.
Reimplemented from eZDataType.
Definition at line 88 of file ezfloattype.php.
| eZFloatType::fixupClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Tries to do a fixup on the input text so that it's acceptable as class attribute input.
Reimplemented from eZDataType.
Definition at line 298 of file ezfloattype.php.
| eZFloatType::fixupObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Tries to do a fixup on the input text so that it's acceptable as object attribute input.
Reimplemented from eZDataType.
Definition at line 178 of file ezfloattype.php.
| eZFloatType::fromString | ( | $ | contentObjectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 361 of file ezfloattype.php.
| eZFloatType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 348 of file ezfloattype.php.
| eZFloatType::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets the default value.
Reimplemented from eZDataType.
Definition at line 64 of file ezfloattype.php.
| eZFloatType::metaData | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 326 of file ezfloattype.php.
| eZFloatType::objectAttributeContent | ( | $ | contentObjectAttribute | ) |
| eZFloatType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 366 of file ezfloattype.php.
| eZFloatType::storeClassAttribute | ( | $ | classAttribute, |
| $ | 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.
Reimplemented from eZDataType.
Definition at line 322 of file ezfloattype.php.
| eZFloatType::storeObjectAttribute | ( | $ | objectAttribute | ) |
Stores the datatype data to the database which is related to the object attribute.
Reimplemented from eZDataType.
Definition at line 182 of file ezfloattype.php.
| eZFloatType::supportsBatchInitializeObjectAttribute | ( | ) |
Reimplemented from eZDataType.
Definition at line 412 of file ezfloattype.php.
| eZFloatType::title | ( | $ | contentObjectAttribute, |
| $ | name = null |
||
| ) |
Returns the float value.
Reimplemented from eZDataType.
Definition at line 343 of file ezfloattype.php.
| eZFloatType::toString | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 356 of file ezfloattype.php.
| eZFloatType::unserializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Extracts values from the attribute parameters and sets it in the class attribute.
Reimplemented from eZDataType.
Definition at line 391 of file ezfloattype.php.
| eZFloatType::validateClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Validates the input for a class attribute and returns a validation state as defined in eZInputValidator.
Reimplemented from eZDataType.
Definition at line 236 of file ezfloattype.php.
| eZFloatType::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Validates the input and returns true if the input was valid for this datatype.
Reimplemented from eZDataType.
Definition at line 110 of file ezfloattype.php.
| eZFloatType::$FloatValidator |
The float value validator.
Definition at line 430 of file ezfloattype.php.
| const eZFloatType::DATA_TYPE_STRING = "ezfloat" |
Definition at line 40 of file ezfloattype.php.
| const eZFloatType::DEFAULT_FIELD = "data_float3" |
Definition at line 45 of file ezfloattype.php.
| const eZFloatType::DEFAULT_VARIABLE = "_ezfloat_default_value_" |
Definition at line 46 of file ezfloattype.php.
| const eZFloatType::HAS_MAX_VALUE = 2 |
Definition at line 50 of file ezfloattype.php.
Referenced by fetchClassAttributeHTTPInput(), and unserializeContentClassAttribute().
| const eZFloatType::HAS_MIN_MAX_VALUE = 3 |
Definition at line 51 of file ezfloattype.php.
Referenced by fetchClassAttributeHTTPInput(), and unserializeContentClassAttribute().
| const eZFloatType::HAS_MIN_VALUE = 1 |
Definition at line 49 of file ezfloattype.php.
Referenced by fetchClassAttributeHTTPInput(), and unserializeContentClassAttribute().
| const eZFloatType::INPUT_STATE_FIELD = "data_float4" |
Definition at line 47 of file ezfloattype.php.
| const eZFloatType::MAX_FIELD = "data_float2" |
Definition at line 43 of file ezfloattype.php.
| const eZFloatType::MAX_VARIABLE = "_ezfloat_max_float_value_" |
Definition at line 44 of file ezfloattype.php.
| const eZFloatType::MIN_FIELD = "data_float1" |
Definition at line 41 of file ezfloattype.php.
| const eZFloatType::MIN_VARIABLE = "_ezfloat_min_float_value_" |
Definition at line 42 of file ezfloattype.php.
| const eZFloatType::NO_MIN_MAX_VALUE = 0 |
Definition at line 48 of file ezfloattype.php.
Referenced by fetchClassAttributeHTTPInput(), and unserializeContentClassAttribute().