eZPublishCommunityProject  2013.9
eZ\Publish\Core\FieldType\Validator\EmailAddressValidator Class Reference
+ Inheritance diagram for eZ\Publish\Core\FieldType\Validator\EmailAddressValidator:
+ Collaboration diagram for eZ\Publish\Core\FieldType\Validator\EmailAddressValidator:

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

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

Member Function Documentation

eZ\Publish\Core\FieldType\Validator\EmailAddressValidator::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.

Parameters
\eZ\Publish\Core\FieldType\Value$value
Returns
boolean
eZ\Publish\Core\FieldType\Validator\EmailAddressValidator::validateConstraints (   $constraints)

Parameters
mixed$constraints
Returns
mixed

Member Data Documentation

eZ\Publish\Core\FieldType\Validator\EmailAddressValidator::$constraints
protected
Initial value:
= array(
"Extent" => false,
)

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

eZ\Publish\Core\FieldType\Validator\EmailAddressValidator::$constraintsSchema
protected
Initial value:
= array(
"Extent" => array(
"type" => "string",
"default" => "regex"
)
)

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