TYPO3
7.6
|
Public Member Functions | |
isValid ($value) | |
Public Member Functions inherited from AbstractValidator | |
__construct (array $options=array()) | |
validate ($value) | |
getOptions () | |
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()) | |
Protected Attributes inherited from AbstractValidator | |
$acceptsEmptyValues = true | |
$supportedOptions = array() | |
$options = array() | |
$result | |
Validator for "plain" text.
Definition at line 22 of file TextValidator.php.
isValid | ( | $value | ) |
Checks if the given value is a valid text (contains no XML tags).
Be aware that the value of this check entirely depends on the output context. The validated text is not expected to be secure in every circumstance, if you want to be sure of that, use a customized regular expression or filter on output.
See http://php.net/filter_var for details.
mixed | $value | The value that should be validated |
Definition at line 37 of file TextValidator.php.
References AbstractValidator\addError(), and AbstractValidator\translateErrorMessage().