AtLeastOneContentAreaRequiredValidator Class Reference

Inheritance diagram for AtLeastOneContentAreaRequiredValidator:
EmailTemplateAtLeastOneContentAreaRequiredValidator

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,
attribute 
) [protected]

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

Parameters:
RedBeanModel $object the model being validated
string $attribute the attribute being validated
Returns:
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 Mon Jun 26 07:10:22 2017