ExistingMarketingListOrNewMarketingListNameRequiredValidator Class Reference

Data Fields

 $marketingListPropertyName = 'marketingList'
 $newMarketingListNamePropertyName = 'newMarketingListName'

Protected Member Functions

 validateAttribute ($object, $attribute)
 resolveErrorMessageWhenNothingSelected ($object)
 resolveErrorMessageWhenBothSelected ($object)

Detailed Description

Definition at line 37 of file ExistingMarketingListOrNewMarketingListNameRequiredValidator.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 ExistingMarketingListOrNewMarketingListNameRequiredValidator.php.

resolveErrorMessageWhenNothingSelected ( object  )  [protected]

Error message when none of options selected

Parameters:
$object 
Returns:
string

Definition at line 95 of file ExistingMarketingListOrNewMarketingListNameRequiredValidator.php.

resolveErrorMessageWhenBothSelected ( object  )  [protected]

Error message wehn both options selected

Parameters:
$object 
Returns:
string

Definition at line 105 of file ExistingMarketingListOrNewMarketingListNameRequiredValidator.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Nov 21 07:11:01 2019