sfValidatorPass.class.php 821 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * sfValidatorPass is an identity validator. It simply returns the value unmodified.
  11. *
  12. * @package symfony
  13. * @subpackage validator
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @version SVN: $Id: sfValidatorPass.class.php 7902 2008-03-15 13:17:33Z fabien $
  16. */
  17. class sfValidatorPass extends sfValidatorBase
  18. {
  19. /**
  20. * @see sfValidatorBase
  21. */
  22. public function clean($value)
  23. {
  24. return $this->doClean($value);
  25. }
  26. /**
  27. * @see sfValidatorBase
  28. */
  29. protected function doClean($value)
  30. {
  31. return $value;
  32. }
  33. }