Maslosoft Mangan API
Class MatchValidatorAnnotation
RegularExpressionValidator validates that the attribute value matches to the specified pattern regular expression.
You may invert the validation logic with help of the Maslosoft\Mangan\Annotations\Validators\MatchValidatorAnnotation::$not property (available since 1.1.5).
- Maslosoft\Addendum\Collections\MetaAnnotation
-
Maslosoft\Mangan\Meta\ManganAnnotation
-
Maslosoft\Mangan\Meta\ManganPropertyAnnotation
-
Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
-
Maslosoft\Mangan\Annotations\Validators\MatchValidatorAnnotation
uses
Maslosoft\Mangan\Validators\Traits\AllowEmpty
Package: system\validators
Author: Qiang Xue qiang.xue@gmail.com
Version: $Id$
Since: 1.0
Located at Annotations/Validators/MatchValidatorAnnotation.php
Methods inherited from Maslosoft\Mangan\Meta\ManganPropertyAnnotation
Methods inherited from Maslosoft\Mangan\Meta\ManganAnnotation
Constants summary
Constants inherited from Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
Properties summary
public
string
|
$pattern
the regular expression to be matched with |
#
NULL
|
public
boolean
|
$not
whether to invert the validation logic. Defaults to false. If set to true,
the regular expression defined via |
#
false
|
Properties inherited from Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
$class,
$except,
$message,
$on,
$proxy,
$safe,
$skipOnError,
$value