Property | Type | Description | |
---|---|---|---|
$allowArray | whether to allow array type attribute. | ||
$not | whether to invert the validation logic. Defaults to false. If set to true, the attribute value should NOT be among the list of values defined via [[range]]. | ||
$range | a list of valid values that the attribute value should be among or an anonymous function that returns such a list. The signature of the anonymous function should be as follows, php function($model, $attribute) { compute range return $range; } | ||
$strict | whether the comparison is strict (both type and value must be the same) |
Method | Description | |
---|---|---|
clientValidateAttribute ( $model, $attribute, $view ) | ||
init ( ) | ||
validateAttribute ( $model, $attribute ) |
Method | Description | |
---|---|---|
validateValue ( $value ) |
public clientValidateAttribute ( $model, $attribute, $view ) |
public $not |
public $range |