TypeValidator Class Reference

Inheritance diagram for TypeValidator:

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

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

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 Sat Nov 16 07:11:08 2019