PHP 클래스 yii\validators\EmailValidator

부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends Validator
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$allowName whether to allow name in the email address (e.g. "John Smith "). Defaults to false.
$checkDNS whether to check whether the email's domain exists and has either an A or MX record. Be aware that this check can fail due to temporary DNS problems even if the email address is valid and an email would be deliverable. Defaults to false.
$enableIDN whether validation process should take into account IDN (internationalized domain names). Defaults to false meaning that validation of emails containing IDN will always fail. Note that in order to use IDN validation you have to install and enable intl PHP extension, otherwise an exception would be thrown.
$fullPattern the regular expression used to validate email addresses with the name part. This property is used only when [[allowName]] is true.
$pattern the regular expression used to validate the attribute value.

공개 메소드들

메소드 설명
clientValidateAttribute ( $model, $attribute, $view )
init ( )

보호된 메소드들

메소드 설명
validateValue ( $value )

메소드 상세

clientValidateAttribute() 공개 메소드

public clientValidateAttribute ( $model, $attribute, $view )

init() 공개 메소드

public init ( )

validateValue() 보호된 메소드

protected validateValue ( $value )

프로퍼티 상세

$allowName 공개적으로 프로퍼티

whether to allow name in the email address (e.g. "John Smith "). Defaults to false.
또한 보기: fullPattern
public $allowName

$checkDNS 공개적으로 프로퍼티

whether to check whether the email's domain exists and has either an A or MX record. Be aware that this check can fail due to temporary DNS problems even if the email address is valid and an email would be deliverable. Defaults to false.
public $checkDNS

$enableIDN 공개적으로 프로퍼티

whether validation process should take into account IDN (internationalized domain names). Defaults to false meaning that validation of emails containing IDN will always fail. Note that in order to use IDN validation you have to install and enable intl PHP extension, otherwise an exception would be thrown.
public $enableIDN

$fullPattern 공개적으로 프로퍼티

the regular expression used to validate email addresses with the name part. This property is used only when [[allowName]] is true.
또한 보기: allowName
public $fullPattern

$pattern 공개적으로 프로퍼티

the regular expression used to validate the attribute value.
또한 보기: http://www.regular-expressions.info/email.html
public $pattern