Class CUnsafeValidator
CUnsafeValidator marks the associated attributes to be unsafe so that they cannot be massively assigned.
- CComponent
- CValidator
- CUnsafeValidator
Package: system\validators
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/validators/CUnsafeValidator.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/validators/CUnsafeValidator.php
protected
|
#
validateAttribute(
Validates the attribute of the object. This validator does not do any validation as it is meant to only mark attributes as unsafe. |
addError(),
applyTo(),
clientValidateAttribute(),
createValidator(),
isEmpty(),
validate()
|
public
boolean
|
$safe | false |
#
whether attributes listed with this validator should be considered safe for massive assignment. Defaults to false. |
$attributes,
$builtInValidators,
$enableClientValidation,
$except,
$message,
$on,
$skipOnError
|