Development

/branches/1.3/lib/validator/sfValidatorPass.class.php

You must first sign up to be able to contribute.

root/branches/1.3/lib/validator/sfValidatorPass.class.php

Revision 7902, 0.7 kB (checked in by fabien, 7 years ago)

rename sfValidatorBase to sfValidator in sfCompat10Plugin and renamed the new sfValidator class to sfValidatorBase (closes #3103)

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * sfValidatorPass is an identity validator. It simply returns the value unmodified.
13  *
14  * @package    symfony
15  * @subpackage validator
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 class sfValidatorPass extends sfValidatorBase
20 {
21   /**
22    * @see sfValidatorBase
23    */
24   public function clean($value)
25   {
26     return $this->doClean($value);
27   }
28
29   /**
30    * @see sfValidatorBase
31    */
32   protected function doClean($value)
33   {
34     return $value;
35   }
36 }
37
Note: See TracBrowser for help on using the browser.