PHP Class Symfony\Component\Validator\Constraints\EmailValidator

Author: Bernhard Schussek ([email protected])
Inheritance: extends Symfony\Component\Validator\ConstraintValidator
Mostra file Open project: symfony/validator Class Usage Examples

Public Methods

Method Description
__construct ( $strict = false )
validate ( $value, Constraint $constraint )

Private Methods

Method Description
checkHost ( string $host ) : boolean Check if one of MX, A or AAAA DNS RR exists.
checkMX ( string $host ) : boolean Check DNS Records for MX type.

Method Details

__construct() public method

public __construct ( $strict = false )

validate() public method

public validate ( $value, Constraint $constraint )
$constraint Symfony\Component\Validator\Constraint