Class RulesProvider
A Proxy class used to remove any extra arguments when the user intended to call a method in another class that is not aware of validation providers signature
Properties summary
-
$_class
protectedThe class/object to proxy.mixed
-
$_reflection
protectedThe proxied class' reflectionReflectionClass
Method Summary
- __call() publicProxies validation method calls to the Validation class.
- __construct() publicConstructor, sets the default class to use for calling methods
Method Detail
__call()source public
__call( string $method , array $arguments )
Proxies validation method calls to the Validation class.
The last argument (context) will be sliced off, if the validation method's last parameter is not named 'context'. This lets the various wrapped validation methods to not receive the validation context unless they need it.
Parameters
- string
$method
- the validation method to call
- array
$arguments
- the list of arguments to pass to the method
Returns
booleanwhether or not the validation rule passed
__construct()source public
__construct( string $class '\Cake\Validation\Validation' )
Constructor, sets the default class to use for calling methods
Parameters
- string
$class
optional '\Cake\Validation\Validation' - the default class to proxy
Properties detail
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Validation.RulesProvider.html