Property | Type | Description | |
---|---|---|---|
$defaultScheme | the default URI scheme. If the input doesn't contain the scheme part, the default scheme will be prepended to it (thus changing the input). Defaults to null, meaning a URL must contain the scheme part. | ||
$enableIDN | whether validation process should take into account IDN (internationalized domain names). Defaults to false meaning that validation of URLs 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. | ||
$pattern | the regular expression used to validate the attribute value. The pattern may contain a {schemes} token that will be replaced by a regular expression which represents the [[validSchemes]]. | ||
$validSchemes | list of URI schemes which should be considered valid. By default, http and https are considered to be valid schemes. |
Method | Description | |
---|---|---|
clientValidateAttribute ( $model, $attribute, $view ) | ||
init ( ) | ||
validateAttribute ( $model, $attribute ) |
Method | Description | |
---|---|---|
validateValue ( $value ) |
public clientValidateAttribute ( $model, $attribute, $view ) |
public $defaultScheme |
public $enableIDN |
public $pattern |