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
Datei anzeigen Open project: yiisoft/yii2 Class Usage Examples

Public Properties

Property 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

Public Methods

Method Description
clientValidateAttribute ( $model, $attribute, $view )
init ( )

Protected Methods

Method Description
validateValue ( $value )

Method Details

clientValidateAttribute() public method

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

init() public method

public init ( )

validateValue() protected method

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