mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-03 14:54:04 +01:00
32 lines
787 B
PHP
32 lines
787 B
PHP
<?php
|
|
/**
|
|
* CUnsafeValidator class file.
|
|
*
|
|
* @author Qiang Xue <qiang.xue@gmail.com>
|
|
* @link http://www.yiiframework.com/
|
|
* @copyright Copyright © 2008-2010 Yii Software LLC
|
|
* @license http://www.yiiframework.com/license/
|
|
*/
|
|
|
|
/**
|
|
* CUnsafeValidator marks the associated attributes to be unsafe so that they cannot be massively assigned.
|
|
*
|
|
* @author Qiang Xue <qiang.xue@gmail.com>
|
|
* @version $Id$
|
|
* @package system.validators
|
|
* @since 1.0
|
|
*/
|
|
class CUnsafeValidator extends CValidator
|
|
{
|
|
/**
|
|
* Validates the attribute of the object.
|
|
* If there is any error, the error message is added to the object.
|
|
* @param CModel the object being validated
|
|
* @param string the attribute being validated
|
|
*/
|
|
protected function validateAttribute($object,$attribute)
|
|
{
|
|
}
|
|
}
|
|
|