프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$allowName | whether to allow name in the email address (e.g. "John Smith |
||
$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 ) |
public $allowName |
public $checkDNS |
public $enableIDN |
public $fullPattern |