Qiang Xue
12 years ago
11 changed files with 45 additions and 68 deletions
@ -1,30 +0,0 @@
|
||||
<?php |
||||
/** |
||||
* SafeValidator class file. |
||||
* |
||||
* @link http://www.yiiframework.com/ |
||||
* @copyright Copyright © 2008 Yii Software LLC |
||||
* @license http://www.yiiframework.com/license/ |
||||
*/ |
||||
|
||||
namespace yii\validators; |
||||
|
||||
/** |
||||
* SafeValidator marks the associated attributes to be safe for massive assignments. |
||||
* |
||||
* @author Qiang Xue <qiang.xue@gmail.com> |
||||
* @since 2.0 |
||||
*/ |
||||
class SafeValidator extends Validator |
||||
{ |
||||
/** |
||||
* Validates the attribute of the object. |
||||
* If there is any error, the error message is added to the object. |
||||
* @param \yii\base\Model $object the object being validated |
||||
* @param string $attribute the attribute being validated |
||||
*/ |
||||
public function validateAttribute($object, $attribute) |
||||
{ |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue