Class Pattern
Responsibility: Validate submitted value by regular expression from configured pattern
HTML attribute.
- MvcCore\Ext\Forms\Validator implements MvcCore\Ext\Forms\IValidator
-
MvcCore\Ext\Forms\Validators\Pattern implements MvcCore\Ext\Forms\Fields\IPattern uses MvcCore\Ext\Forms\Field\Props\Pattern
Namespace: MvcCore\Ext\Forms\Validators
Located at ext-form-field-text/src/MvcCore/Ext/Forms/Validators/Pattern.php
Located at ext-form-field-text/src/MvcCore/Ext/Forms/Validators/Pattern.php
public
string|null
|
CreateInstance(),
GetErrorMessage(),
SetField(),
SetForm(),
__construct(),
setUpFieldProps(),
throwNewInvalidArgumentException()
|
GetPattern(),
SetPattern()
|
GetPattern(),
SetPattern(),
setFormPattern()
|
integer |
ERROR_INVALID_FORMAT
Error message index(es). |
#
0
|
protected static
array
|
$errorMessages
Validation failure message template definitions. |
#
[
self::ERROR_INVALID_FORMAT => "Field '{0}' has invalid format ('{1}').",
]
|
protected static
array
|
$fieldSpecificProperties
Field specific values (camel case) and their validator default values. |
#
[
'pattern' => NULL,
]
|
$field,
$form,
$toolClass
|
$pattern
|