EC-CUBE4 APIドキュメント

EmailValidator extends ConstraintValidator

フォームで使用するEmailのバリデータ.

eccube_rfc_email_checkがtrueの場合, Symfony\Component\Validator\Constraints\EmailValidatorを使用してチェックを行います. falseの場合は, Eccube\Validator\EmailValidator\NoRFCEmailValidatorを使用してチェックを行います. NoRFCEmailValidatorは, 日本のキャリアメールで使用されていた, ..や.@の形式を許容します.

Table of Contents

validate() {@inheritdoc} mixed
checkMX() Check DNS Records for MX type. bool
checkHost() Check if one of MX, A or AAAA DNS RR exists. bool

Methods

validate()

{@inheritdoc}

public validate( $value : mixed , $constraint : Constraint ) : mixed
Parameters
$value : mixed
$constraint : Constraint
Return values
mixed

checkMX()

Check DNS Records for MX type.

private checkMX( $host : string ) : bool
Parameters
$host : string

Host

Return values
bool

checkHost()

Check if one of MX, A or AAAA DNS RR exists.

private checkHost( $host : string ) : bool
Parameters
$host : string

Host

Return values
bool

Search results