PHP 클래스 yii\validators\RegularExpressionValidator

If the [[not]] property is set true, the validator will ensure the attribute value do NOT match the [[pattern]].
부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends Validator
파일 보기 프로젝트 열기: yiisoft/yii2 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$not whether to invert the validation logic. Defaults to false. If set to true, the regular expression defined via [[pattern]] should NOT match the attribute value.
$pattern the regular expression to be matched with

공개 메소드들

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

보호된 메소드들

메소드 설명
validateValue ( $value )

메소드 상세

clientValidateAttribute() 공개 메소드

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

init() 공개 메소드

public init ( )

validateValue() 보호된 메소드

protected validateValue ( $value )

프로퍼티 상세

$not 공개적으로 프로퍼티

whether to invert the validation logic. Defaults to false. If set to true, the regular expression defined via [[pattern]] should NOT match the attribute value.
public $not

$pattern 공개적으로 프로퍼티

the regular expression to be matched with
public $pattern