Method |
Description |
|
__construct ( string $htmlForm, Zend\InputFilter\Factory $factory = null, array $defaultValues = [] ) |
FormFactory constructor: Load html form and optionally set an InputFilter |
|
asString ( Xtreamwayz\HTMLFormValidator\ValidationResultInterface $result = null ) : string |
Return form as a string. Optionally inject the error messages for the result. |
|
fromHtml ( string $htmlForm, array $defaultValues = [] ) : Xtreamwayz\HTMLFormValidator\FormFactoryInterface |
Load html form and optionally set default data |
|
validate ( array $data, null | string $method = null ) : Xtreamwayz\HTMLFormValidator\ValidationResultInterface |
Validate the loaded form with the data |
|
validateRequest ( Psr\Http\Message\ServerRequestInterface $request ) : Xtreamwayz\HTMLFormValidator\ValidationResultInterface |
|
|