eZPublishCommunityProject  2013.6
eZ\Publish\Core\FieldType\Validator\IntegerValueValidator Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\Validator\IntegerValueValidator:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Validator\IntegerValueValidator:

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\IntegerValueValidator::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 constraint has failed, an entry will be added to the $errors array.

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

Member Data Documentation

Initial value:
= array(
'minIntegerValue' => false,
'maxIntegerValue' => false

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

Initial value:
= array(
"minIntegerValue" => array(
"type" => "int",
"default" => 0
"maxIntegerValue" => array(
"type" => "int",
"default" => false

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