TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
NotEmptyValidator Class Reference
Inheritance diagram for NotEmptyValidator:
AbstractValidator ValidatorInterface

Public Member Functions

 isValid ($value)
 
- Public Member Functions inherited from AbstractValidator
 __construct (array $options=array())
 
 validate ($value)
 
 getOptions ()
 

Protected Attributes

 $acceptsEmptyValues = false
 
- 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())
 

Detailed Description

Validator for not empty values.

Definition at line 22 of file NotEmptyValidator.php.

Member Function Documentation

isValid (   $value)

Checks if the given property ($propertyValue) is not empty (NULL, empty string, empty array or empty object).

Parameters
mixed$valueThe value that should be validated
Returns
void

Definition at line 38 of file NotEmptyValidator.php.

References AbstractValidator\addError(), and AbstractValidator\translateErrorMessage().

Member Data Documentation

$acceptsEmptyValues = false
protected

Definition at line 30 of file NotEmptyValidator.php.