3
* CSafeValidator class file.
5
* @author Qiang Xue <qiang.xue@gmail.com>
6
* @link http://www.yiiframework.com/
7
* @copyright Copyright © 2008-2010 Yii Software LLC
8
* @license http://www.yiiframework.com/license/
12
* CSafeValidator marks the associated attributes to be safe for massive assignments.
14
* @author Qiang Xue <qiang.xue@gmail.com>
15
* @version $Id: CSafeValidator.php 1678 2010-01-07 21:02:00Z qiang.xue $
16
* @package system.validators
19
class CSafeValidator extends CValidator
22
* Validates the attribute of the object.
23
* If there is any error, the error message is added to the object.
24
* @param CModel the object being validated
25
* @param string the attribute being validated
27
protected function validateAttribute($object,$attribute)