Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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
 * 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: sfValidatorI18nChoiceTimezone.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
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
}