All Data Structures Functions Variables Pages
Data Fields | Protected Member Functions
RedBeanModelCompareDateTimeValidator Class Reference
Inheritance diagram for RedBeanModelCompareDateTimeValidator:

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$modelthe model being validated
string$attributethe attribute being validated

Definition at line 61 of file RedBeanModelCompareDateTimeValidator.php.


The documentation for this class was generated from the following file:
Generated on Mon Jun 1 2020 07:10:59