TypeValidator Class Reference

Inheritance diagram for TypeValidator:
RedBeanModelTypeValidator

Protected Member Functions

 validateAttribute ($object, $attribute)

Detailed Description

See the yii documentation. Validates datetime as integer, since it is a timestamp Validates date as a db formatted date string.

Definition at line 43 of file TypeValidator.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 $model the model being validated
string $attribute the attribute being validated

Reimplemented in RedBeanModelTypeValidator.

Definition at line 51 of file TypeValidator.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jun 27 07:10:30 2017