eZPublishCommunityProject  2012.12
eZ\Publish\Core\FieldType\Validator\FloatValueValidator Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\Validator\FloatValueValidator:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Validator\FloatValueValidator:

Public Member Functions

 validate (BaseValue $value)
 Perform validation on $value. More...
 validateConstraints ($constraints)
- Public Member Functions inherited from eZ\Publish\Core\FieldType\Validator
 __get ($name)
 Magic getter. More...
 __set ($name, $value)
 Magic setter. More...
 getConstraintsSchema ()
 Returns a schema for supported validator configurations. More...
 getMessage ()
 Returns array of messages on performed validations. More...
 initializeWithConstraints (array $constraints)
 Initialized an instance of Validator, with earlier configured constraints. More...
 validate (Value $value)
 Perform validation on $value. More...
 validateConstraints ($constraints)

Protected Attributes

- Protected Attributes inherited from eZ\Publish\Core\FieldType\Validator
 $constraints = array()
 $constraintsSchema = array()
 $errors = array()

Member Function Documentation

eZ\Publish\Core\FieldType\Validator\FloatValueValidator::validate ( BaseValue  $value)

Perform validation on $value.

Will return true when all constraints are matched. If one or more constraints fail, the method will return false.

When a check against a constant has failed, an entry will be added to the $errors array.

eZ\Publish\Core\FieldType\Validator\FloatValueValidator::validateConstraints (   $constraints)

Member Data Documentation

Initial value:
= array(
'minFloatValue' => false,
'maxFloatValue' => false

Referenced by eZ\Publish\Core\FieldType\Validator\FloatValueValidator\validateConstraints().

Initial value:
= array(
"minFloatValue" => array(
"type" => "float",
"default" => false
"maxFloatValue" => array(
"type" => "float",
"default" => false

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