All Classes Namespaces Files Functions Variables Pages
EmptyValidator Class Reference
Inheritance diagram for EmptyValidator:
AbstractValidator ValidatorInterface

Public Member Functions

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

Protected Attributes

 $acceptsEmptyValues = true
- Protected Attributes inherited from AbstractValidator
 $acceptsEmptyValues = true
 $supportedOptions = []
 $options = []

Additional Inherited Members

- Protected Member Functions inherited from AbstractValidator
 isValid ($value)
 addError ($message, $code, array $arguments=[], $title= '')
 isEmpty ($value)
 translateErrorMessage ($translateKey, $extensionName, $arguments=[])

Detailed Description

Validator for empty values.

Scope: frontend

Definition at line 26 of file EmptyValidator.php.

Member Function Documentation

isValid (   $value)

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

mixed$valueThe value that should be validated

Definition at line 43 of file EmptyValidator.php.

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

Member Data Documentation

$acceptsEmptyValues = true

Definition at line 34 of file EmptyValidator.php.