AndoperatorValidator | ANDOperatorValidator only succeeds if all sub-validators succeeded Parameters: ‘skip_errors’ do not submit errors of child validators to validator manager ‘break’ break the execution of child validators after first failure |
ArraylengthValidator | ArraylengthValidator verifies the length (count()) constraints for an array Parameters: ‘min’ The array should contain at least ‘min’ elements ‘max’ The array should contain at most ‘max’ elements |
BaseFileValidator | BaseFileValidator is the base validator when validating files. |
BooleanValidator | BooleanValidator verifies a parameter is a valid boolean Accepted values are string 0/1, int 0/1, bool true/false, string yes/no, string true/false, string on/off - basically all values that Toolkit::literalize() will accept. |
DateTimeValidator | DateTimeValidator verifies that a parameter is of a date and/or time format using native \DateTimeImmutable and IntlDateFormatter APIs. |
DependencyManager | DependencyManager handles the dependencies in the validation process |
EmailValidator | EmailValidator verifies if a parameter contains a value that qualifies as an email address. |
EqualsValidator | EqualsValidator verifies if a parameter equals to a given value The input is compared to a value and the validator fails if they differ. |
FileValidator | FileValidator verifies the size and extension of a file |
ImageFileValidator | ImageFileValidator verifies a parameter is an uploaded image Parameters: ‘min_width’ The minimum width of the image ‘max_width’ The maximum width of the image ‘min_height’ The minimum height of the image ‘max_height’ The maximum height of the image ‘format’ list of valid formats (gif,jpeg,png,bmp,psd,swf) Errors: ‘no_image’ The uploaded file is no image ‘min_width’ ‘max_width’ ‘min_height’ ‘max_height’ ‘format’ The image was not in the required format |
InarrayValidator | InArrayValidator verifies whether an input is one of a set of values Parameters: ‘values’ list of values that form the array ‘sep’ separator of values in the list ‘case’ verifies case sensitive if true ‘strict’ whether or not to do strict type comparisons with in_array() |
IsNotEmptyValidator | IsNotEmptyValidator verifies a parameter is not empty The content of the input value is not verified in any manner, it is only checked if the input value exists and is not empty. |
IssetValidator | IssetValidator verifies a parameter is set The content of the input value is not verified in any manner, it is only checked if the input value exists. |
JsonValidator | JsonValidator verifies if a parameter contains a value that is valid JSON. |
NotoperatorValidator | NOTOperatorValidator succeeds if the sub-validator failed Parameters: ‘skip_errors’ do not submit errors of child validators to validator manager |
NumberValidator | NumberValidator verifies that a parameter is a number and allows you to apply size constraints. |
OperatorValidator | OperatorValidator Operators group a couple if validators… |
OroperatorValidator | OROperatorValidator succeeds if at least one sub-validators succeeded Parameters: ‘skip_errors’ do not submit errors of child validators to validator manager ‘break’ break the execution of child validators after first success |
RegexValidator | RegexValidator allows you to match a value against a regular expression pattern. |
SetValidator | SetValidator only exports a value and always succeeds Parameters: ‘value’ value that should be exported |
StringValidator | StringValidator allows you to apply string-related constraints to a parameter. |
ValidationArgument | ValidationArgument is a tuple of argument name and source that specifies the argument to validate. |
ValidationError | ValidationError stores an error message and the fields of an error. |
ValidationIncident | ValidationIncident is erroneous result of an validation run. |
ValidationManager | ValidationManager provides management for request parameters and their associated validators. |
ValidationReport | ValidationReport stores the result of a validation run. |
ValidationReportQuery | ValidationReportQuery allows queries against the validation run report. |
Validator | Validator allows you to validate input Parameters for use in most validators: ‘name’ name of validator ‘base’ base path for validation of arrays ‘arguments’ an array of input parameter keys to validate ‘export’ destination for exported data ‘depends’ list of dependencies needed by the validator ‘provides’ list of dependencies the validator provides after success ‘severity’ error severity in case of failure ‘error’ error message when validation fails ‘errors’ an array of errors with the reason as key ‘required’ if true the validator will fail when the input parameter is not set |
ValidatorFactory | Builds a validator from its class name. |
XoroperatorValidator | XOROperatorValidator succeeds if only one of two sub-validators succeeded Parameters: ‘skip_errors’ don’t submit errors of child validators to validator manager |