SafeValidator.php 720 Bytes
Newer Older
w  
Qiang Xue committed
1 2
<?php
/**
w  
Qiang Xue committed
3
 * SafeValidator class file.
w  
Qiang Xue committed
4 5
 *
 * @link http://www.yiiframework.com/
w  
Qiang Xue committed
6
 * @copyright Copyright &copy; 2008-2012 Yii Software LLC
w  
Qiang Xue committed
7 8 9
 * @license http://www.yiiframework.com/license/
 */

w  
Qiang Xue committed
10 11
namespace yii\validators;

w  
Qiang Xue committed
12
/**
w  
Qiang Xue committed
13
 * SafeValidator marks the associated attributes to be safe for massive assignments.
w  
Qiang Xue committed
14 15
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
w  
Qiang Xue committed
16
 * @since 2.0
w  
Qiang Xue committed
17
 */
w  
Qiang Xue committed
18
class SafeValidator extends Validator
w  
Qiang Xue committed
19 20 21 22
{
	/**
	 * Validates the attribute of the object.
	 * If there is any error, the error message is added to the object.
w  
Qiang Xue committed
23
	 * @param \yii\base\Model $object the object being validated
w  
Qiang Xue committed
24 25
	 * @param string $attribute the attribute being validated
	 */
w  
Qiang Xue committed
26
	public function validateAttribute($object, $attribute)
w  
Qiang Xue committed
27 28 29 30
	{
	}
}