CSafeValidator.php 746 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * CSafeValidator class file.
  4. *
  5. * @author Qiang Xue <qiang.xue@gmail.com>
  6. * @link http://www.yiiframework.com/
  7. * @copyright 2008-2013 Yii Software LLC
  8. * @license http://www.yiiframework.com/license/
  9. */
  10. /**
  11. * CSafeValidator marks the associated attributes to be safe for massive assignments.
  12. *
  13. * @author Qiang Xue <qiang.xue@gmail.com>
  14. * @package system.validators
  15. * @since 1.1
  16. */
  17. class CSafeValidator extends CValidator
  18. {
  19. /**
  20. * Validates the attribute of the object.
  21. * If there is any error, the error message is added to the object.
  22. * @param CModel $object the object being validated
  23. * @param string $attribute the attribute being validated
  24. */
  25. protected function validateAttribute($object,$attribute)
  26. {
  27. }
  28. }