$validators
$validators : array
Form validators
Form validator class
createFromConfig(array|\Pop\Form\FormConfig $formConfig, mixed $required = null, array $values = null, mixed $filters = null) : \Pop\Form\FormValidator
Create form validator from config
array|\Pop\Form\FormConfig | $formConfig | |
mixed | $required | |
array | $values | |
mixed | $filters |
addValidators(array $validators) : \Pop\Form\FormValidator
Add validators
array | $validators |
addValidator(string $field, mixed $validator) : \Pop\Form\FormValidator
Add validator
string | $field | |
mixed | $validator |
removeValidators(string $field = null) : \Pop\Form\FormValidator
Remove validators
string | $field |
removeValidator(string $field, integer $index) : \Pop\Form\FormValidator
Remove validator
string | $field | |
integer | $index |
setRequired(mixed $required) : \Pop\Form\FormValidator
Set required
mixed | $required |
removeRequired(string $field) : \Pop\Form\FormValidator
Remove required
string | $field |
setValues(array $values) : \Pop\Form\FormValidator
Set values
array | $values |
addError(string $field, string $error) : \Pop\Form\FormValidator
Add error
string | $field | |
string | $error |