sfValidatorDateTime.class.php 833 B

12345678910111213141516171819202122232425262728293031
  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. * sfValidatorDateTime validates a date and a time. It also converts the input value to a valid date.
  11. *
  12. * @package symfony
  13. * @subpackage validator
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @version SVN: $Id: sfValidatorDateTime.class.php 5581 2007-10-18 13:56:14Z fabien $
  16. */
  17. class sfValidatorDateTime extends sfValidatorDate
  18. {
  19. /**
  20. * @see sfValidatorDate
  21. */
  22. protected function configure($options = array(), $messages = array())
  23. {
  24. parent::configure($options, $messages);
  25. $this->setOption('with_time', true);
  26. }
  27. }