TYPO3
7.6
|
Public Member Functions | |
isValid ($value) | |
Public Member Functions inherited from AbstractValidator | |
__construct (array $options=array()) | |
validate ($value) | |
getOptions () | |
Protected Attributes | |
$supportedOptions | |
Protected Attributes inherited from AbstractValidator | |
$acceptsEmptyValues = true | |
$supportedOptions = array() | |
$options = array() | |
$result | |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractValidator | |
isValid ($value) | |
addError ($message, $code, array $arguments=array(), $title= '') | |
isEmpty ($value) | |
translateErrorMessage ($translateKey, $extensionName, $arguments=array()) | |
Validator for boolean values
Definition at line 20 of file BooleanValidator.php.
isValid | ( | $value | ) |
Check if $value matches the expectation given to the validator. If it does not match, the function adds an error to the result.
Also testing for '1' (true), '0' and '' (false) because casting varies between tests and actual usage. This makes the validator loose but still keeping functionality.
mixed | $value | The value that should be validated |
Definition at line 45 of file BooleanValidator.php.
References AbstractValidator\addError(), and AbstractValidator\translateErrorMessage().
|
protected |
Definition at line 25 of file BooleanValidator.php.