1: <?php
2: /**
3: * CSafeValidator class file.
4: *
5: * @author Qiang Xue <qiang.xue@gmail.com>
6: * @link http://www.yiiframework.com/
7: * @copyright 2008-2013 Yii Software LLC
8: * @license http://www.yiiframework.com/license/
9: */
10:
11: /**
12: * CSafeValidator marks the associated attributes to be safe for massive assignments.
13: *
14: * @author Qiang Xue <qiang.xue@gmail.com>
15: * @package system.validators
16: * @since 1.1
17: */
18: class CSafeValidator extends CValidator
19: {
20: /**
21: * Validates the attribute of the object.
22: * If there is any error, the error message is added to the object.
23: * @param CModel $object the object being validated
24: * @param string $attribute the attribute being validated
25: */
26: protected function validateAttribute($object,$attribute)
27: {
28: }
29: }
30:
31: