PHP Class yii\validators\RegularExpressionValidator

If the [[not]] property is set true, the validator will ensure the attribute value do NOT match the [[pattern]].
Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends Validator
Afficher le fichier Open project: yiisoft/yii2 Class Usage Examples

Méthodes publiques

Свойство Type Description
$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

Méthodes publiques

Méthode Description
clientValidateAttribute ( $model, $attribute, $view )
init ( )

Méthodes protégées

Méthode Description
validateValue ( $value )

Method Details

clientValidateAttribute() public méthode

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

init() public méthode

public init ( )

validateValue() protected méthode

protected validateValue ( $value )

Property Details

$not public_oe property

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 public_oe property

the regular expression to be matched with
public $pattern