프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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) |
메소드 | 설명 | |
---|---|---|
clientValidateAttribute ( $model, $attribute, $view ) | ||
init ( ) | ||
validateAttribute ( $model, $attribute ) |
메소드 | 설명 | |
---|---|---|
validateValue ( $value ) |
public $not |
public $range |