~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to yii/validators/CSafeValidator.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

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