Class Maxlength
- MvcCore\Ext\Form\Core\Validator
-
MvcCore\Ext\Form\Validators\Maxlength
Namespace: MvcCore\Ext\Form\Validators
Located at ext-form/src/MvcCore/Ext/Form/Validators/Maxlength.php
Located at ext-form/src/MvcCore/Ext/Form/Validators/Maxlength.php
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. |
Create(),
__construct(),
addError()
|
$Controller,
$Form,
$Translate,
$Translator,
$instances,
$validatorsClassNameTemplate
|