sfValidatorChoiceMany.class.php 882 B

123456789101112131415161718192021222324252627282930313233
  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. * sfValidatorChoiceMany validates than an array of values is in the array of the expected values.
  11. *
  12. * @package symfony
  13. * @subpackage validator
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @version SVN: $Id: sfValidatorChoiceMany.class.php 11668 2008-09-19 14:02:36Z fabien $
  16. */
  17. class sfValidatorChoiceMany extends sfValidatorChoice
  18. {
  19. /**
  20. * Configures the current validator.
  21. *
  22. * @see sfValidatorChoice
  23. */
  24. protected function configure($options = array(), $messages = array())
  25. {
  26. parent::configure($options, $messages);
  27. $this->setOption('multiple', true);
  28. }
  29. }