sfWidgetFormChoiceMany.class.php 955 B

12345678910111213141516171819202122232425262728293031323334
  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. * sfWidgetFormChoice represents a choice widget 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: sfWidgetFormChoiceMany.class.php 11539 2008-09-14 15:23:48Z fabien $
  16. */
  17. class sfWidgetFormChoiceMany extends sfWidgetFormChoice
  18. {
  19. /**
  20. * @param array $options An array of options
  21. * @param array $attributes An array of default HTML attributes
  22. *
  23. * @see sfWidgetFormChoice
  24. */
  25. protected function configure($options = array(), $attributes = array())
  26. {
  27. parent::configure($options, $attributes);
  28. $this->setOption('multiple', true);
  29. }
  30. }