Return the count of attached validators
Return type: | int |
---|
Get plugin manager instance
Return type: | ValidatorPluginManager |
---|
Set plugin manager instance
Parameters: | ValidatorPluginManager – Plugin manager |
---|---|
Return type: | ValidatorChain |
Retrieve a validator by name
Parameters: |
|
---|---|
Return type: | ValidatorInterface |
Attach a validator to the end of the chain
If $breakChainOnFailure is true, then if the validator fails, the next validator in the chain, if one exists, will not be executed.
Parameters: |
|
---|---|
Return type: | ValidatorChain Provides a fluent interface |
Proxy to attach() to keep BC
Parameters: |
|
---|---|
Return type: | ValidatorChain Provides a fluent interface |
Adds a validator to the beginning of the chain
If $breakChainOnFailure is true, then if the validator fails, the next validator in the chain, if one exists, will not be executed.
Parameters: |
|
---|---|
Return type: | ValidatorChain Provides a fluent interface |
Use the plugin manager to add a validator by name
Parameters: |
|
---|---|
Return type: | ValidatorChain |
Proxy to attachByName() to keep BC
Parameters: |
|
---|---|
Return type: | ValidatorChain |
Use the plugin manager to prepend a validator by name
Parameters: |
|
---|---|
Return type: | ValidatorChain |
Returns true if and only if $value passes all validations in the chain
Validators are run in the order in which they were added to the chain (FIFO).
Parameters: |
|
---|---|
Return type: | bool |
Merge the validator chain with the one given in parameter
Parameters: | ValidatorChain – |
---|---|
Return type: | ValidatorChain |