CDefaultValueValidator
CDefaultValueValidator
Package | system.validators |
---|---|
Inheritance | class CDefaultValueValidator » CValidator » CComponent |
Source Code | framework/validators/CDefaultValueValidator.php |
CDefaultValueValidator sets the attributes with the specified value. It does not do validation but rather allows setting a default value at the same time validation is performed. Usually this happens when calling either
$model->validate()登录查看完整内容