/var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Validation
NameSizeModeActions
composer.json10270644editdlrm
LICENSE.txt12040644editdlrm
README.md12170644editdlrm
RulesProvider.php25440644editdlrm
ValidatableInterface.php11310644editdlrm
Validation.php617860644editdlrm
ValidationRule.php64880644editdlrm
ValidationSet.php56590644editdlrm
Validator.php1036080644editdlrm
ValidatorAwareInterface.php17310644editdlrm
ValidatorAwareTrait.php69630644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/cakephp/cakephp/src/Validation/RulesProvider.php (2544B)
_class = $class; $this->_reflection = new ReflectionClass($class); } /** * 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. * * @param string $method the validation method to call * @param array $arguments the list of arguments to pass to the method * @return bool Whether the validation rule passed */ public function __call(string $method, array $arguments) { $method = $this->_reflection->getMethod($method); $argumentList = $method->getParameters(); if (array_pop($argumentList)->getName() !== 'context') { $arguments = array_slice($arguments, 0, -1); } $object = is_string($this->_class) ? null : $this->_class; return $method->invokeArgs($object, $arguments); } }