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