3
* CUnsafeValidator 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
* CUnsafeValidator marks the associated attributes to be unsafe so that they cannot be massively assigned.
14
* @author Qiang Xue <qiang.xue@gmail.com>
15
* @version $Id: CUnsafeValidator.php 1678 2010-01-07 21:02:00Z qiang.xue $
16
* @package system.validators
19
class CUnsafeValidator 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)