1. sfValidatorI18nChoiceTimezone.class.php
  2. /** * sfValidatorI18nChoiceLanguage validates than the value is a valid timezone. * * @package symfony * @subpackage validator * @author Fabien Potencier * @version SVN: $Id: sfValidatorI18nChoiceTimezone.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */
  3. class sfValidatorI18nChoiceTimezone extends sfValidatorChoice
  4. {
  5. /**
  6. * Configures the current validator.
  7. *
  8. * Available options:
  9. *
  10. * @param array $options An array of options
  11. * @param array $messages An array of error messages
  12. *
  13. * @see sfValidatorChoice
  14. */
  15. protected function configure($options = array(), $messages = array())
  16. {
  17. parent::configure($options, $messages);
  18. $this->setOption('choices', array_keys(sfCultureInfo::getInstance()->getTimeZones()));
  19. }
  20. }

Debug toolbar