Development

/branches/1.3/lib/validator/i18n/sfValidatorI18nChoiceTimezone.class.php

You must first sign up to be able to contribute.

root/branches/1.3/lib/validator/i18n/sfValidatorI18nChoiceTimezone.class.php

Revision 23810, 1.0 kB (checked in by Kris.Wallsmith, 4 years ago)

[1.3] set svn:eol-style property to native and svn:keywords property to Id on all .php files

  • 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  * sfValidatorI18nChoiceLanguage validates than the value is a valid timezone.
13  *
14  * @package    symfony
15  * @subpackage validator
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 class sfValidatorI18nChoiceTimezone extends sfValidatorChoice
20 {
21   /**
22    * Configures the current validator.
23    *
24    * Available options:
25    *
26    * @param array $options   An array of options
27    * @param array $messages  An array of error messages
28    *
29    * @see sfValidatorChoice
30    */
31   protected function configure($options = array(), $messages = array())
32   {
33     parent::configure($options, $messages);
34
35     $this->setOption('choices', array_keys(sfCultureInfo::getInstance()->getTimeZones()));
36   }
37 }
38
Note: See TracBrowser for help on using the browser.