Validation.php
system/Validation/Validation.php
1 class
30 methods
class Validation
Validator
__construct
($config, RendererInterface $view)
run
(?array $data = null, ?string $group = null, $dbGroup = null)
getRegex
(string $field)
check
($value, $rules, array $errors = [], $dbGroup = null)
getValidated
()
processRules
(string $field, ?string $label, $value, $rules = null, // @TODO remove `= null`
?array $data = null, // @TODO remove `= null`
?string $originalField = null, )
processIfExist
(string $field, array $rules, array $data)
processPermitEmpty
($value, array $rules, array $data)
isClosure
($rule)
isStringList
(array $array)
withRequest
(RequestInterface $request)
setRule
(string $field, ?string $label, $rules, array $errors = [])
setRules
(array $rules, array $errors = [])
getRules
()
hasRule
(string $field)
getRuleGroup
(string $group)
setRuleGroup
(string $group)
listErrors
(string $template = 'list')
showError
(string $field, string $template = 'single')
loadRuleSets
()
loadRuleGroup
(?string $group = null)
fillPlaceholders
(array $rules, array $data)
retrievePlaceholders
(string $rule, array $data)
hasError
(string $field)
getError
(?string $field = null)
getErrors
()
setError
(string $field, string $error)
getErrorMessage
(string $rule, string $field, ?string $label = null, ?string $param = null, ?string $value = null, ?string $originalField = null, )
splitRules
(string $rules)
reset
()