RedBeanModelCompareDateTimeValidator Class Reference

Data Fields

 $type
 $compareAttribute

Protected Member Functions

 validateAttribute ($object, $attribute)

Detailed Description

Validator for comparing date time strings against each other.

Definition at line 40 of file RedBeanModelCompareDateTimeValidator.php.


Member Function Documentation

validateAttribute ( object,
attribute 
) [protected]

Validates a date time attribute on a model. Compares either an attribute value is larger or smaller than another date time attribute. If there is any error, the error message is added to the model.

Parameters:
RedBeanModel $model the model being validated
string $attribute the attribute being validated

Definition at line 61 of file RedBeanModelCompareDateTimeValidator.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Jun 24 07:10:28 2017