sfWidgetFormSelectMany.class.php 965 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. * sfWidgetFormSelectMany represents a select HTML tag where you can select multiple values.
  11. *
  12. * @package symfony
  13. * @subpackage widget
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @version SVN: $Id: sfWidgetFormSelectMany.class.php 9046 2008-05-19 08:13:51Z FabianLange $
  16. */
  17. class sfWidgetFormSelectMany extends sfWidgetFormSelect
  18. {
  19. /**
  20. * @param array $options An array of options
  21. * @param array $attributes An array of default HTML attributes
  22. *
  23. * @see sfWidgetFormSelect
  24. */
  25. protected function configure($options = array(), $attributes = array())
  26. {
  27. parent::configure($options, $attributes);
  28. $this->setOption('multiple', true);
  29. }
  30. }