AtLeastOneContentAreaRequiredValidator Class Reference

Inheritance diagram for AtLeastOneContentAreaRequiredValidator:

Data Fields

 $textContentPropertyName = 'textContent'
 $htmlContentPropertyName = 'htmlContent'

Protected Member Functions

 validateAttribute ($object, $attribute)
 resolveErrorMessage ($object)

Detailed Description

Definition at line 37 of file AtLeastOneContentAreaRequiredValidator.php.

Member Function Documentation

validateAttribute ( object,
) [protected]

Validates the attribute of the model. If there is any error, the error message is added to the model.

RedBeanModel $object the model being validated
string $attribute the attribute being validated
boolean true if validation passes

Definition at line 50 of file AtLeastOneContentAreaRequiredValidator.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Sep 15 07:10:56 2019