Bluz\Validator\ValidatorForm
Validator Builder
- Author: Anton Shevchuk
Synopsis
- // members
- protected array $validators = ;
- protected ValidatorException $exception;
- // methods
- public ValidatorChain add()
- public bool validate()
- protected bool validateItem()
- public void assert()
- public bool __invoke()
- public array getErrors()
- public bool hasErrors()
Hierarchy
Implements
Members
protected
- $exception
—
Bluz\Validator\Exception\ValidatorException
Exception with list of validation errors - $validators
—
array
Stack of validators
Methods
protected
- validateItem() — Validate chain of rules for single item
public
- __invoke()
- add() — Add chain to form
- assert() — Assert
- getErrors() — Get errors
- hasErrors() — Has errors?
- validate() — Validate chain of rules
History
-
2017-10-19T07:08:53+00:00 (commit #c97617f)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed `Required` rule for `Validator`
-
2017-09-15T14:06:15+00:00 (commit #f7c3dc5)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Removed `ValidatorFormException`
-
2017-09-07T09:33:42+00:00 (commit #c35342a)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small changes in Validator classes
-
2017-09-06T08:56:24+00:00 (commit #f38d1ec)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `ValidatorInterface` Added `ValidatorFormException` Added method `Validator::addRuleNamespace()`
-
2017-08-03T14:39:04+00:00 (commit #0b47390)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Removed unused code
-
2017-08-03T09:42:00+00:00 (commit #6d3b512)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small refactoring for `ValidatorForm`
-
2017-07-27T08:39:54+00:00 (commit #38c35e0)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Removed `ValidatorFormException`
-
2017-07-26T12:46:33+00:00 (commit #b81814d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Validator refactoring