root/branches/1.2/lib/plugins/sfDoctrinePlugin/lib/widget/sfWidgetFormDoctrineChoiceMany.class.php
| Revision 12634, 0.9 kB (checked in by Jonathan.Wage, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the symfony package. |
| 5 | * (c) Fabien Potencier <fabien.potencier@symfony-project.com> |
| 6 | * (c) Jonathan H. Wage <jonwage@gmail.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | /** |
| 13 | * sfWidgetFormDoctrineChoice represents a choice widget for a model. |
| 14 | * |
| 15 | * @package symfony |
| 16 | * @subpackage doctrine |
| 17 | * @author Fabien Potencier <fabien.potencier@symfony-project.com> |
| 18 | * @author Jonathan H. Wage <jonwage@gmail.com> |
| 19 | * @version SVN: $Id: sfWidgetFormDoctrineChoice.class.php 11540 2008-09-14 15:23:55Z fabien $ |
| 20 | */ |
| 21 | class sfWidgetFormDoctrineChoiceMany extends sfWidgetFormDoctrineChoice |
| 22 | { |
| 23 | /** |
| 24 | * Constructor. |
| 25 | * |
| 26 | * @see sfWidgetFormDoctrineChoice |
| 27 | */ |
| 28 | protected function configure($options = array(), $attributes = array()) |
| 29 | { |
| 30 | parent::configure($options, $attributes); |
| 31 | |
| 32 | $this->setOption('multiple', true); |
| 33 | } |
| 34 | } |
| 35 |
Note: See TracBrowser for help on using the browser.