Class ZipCode
- MvcCore\Ext\Form\Core\Validator
-
MvcCore\Ext\Form\Validators\ZipCode
Namespace: MvcCore\Ext\Form\Validators
Located at ext-form/src/MvcCore/Ext/Form/Validators/ZipCode.php
Located at ext-form/src/MvcCore/Ext/Form/Validators/ZipCode.php
public static
|
|
public
string|array
|
#
Validate( string|array $submitValue, string $fieldName,
Validation template method. In your validator implementation, check submitted value by validator specific rules and if there is any error, call $form->AddError with translated or not translated error message. Return safe submitted value as result. |
protected
|
Create(),
__construct(),
addError()
|
public static
array
|
$Validators
|
#
array()
|
$Controller,
$Form,
$Translate,
$Translator,
$instances,
$validatorsClassNameTemplate
|