Development

/branches/1.3/lib/plugins/sfPropelPlugin/lib/widget/sfWidgetFormPropelChoiceMany.class.php

You must first sign up to be able to contribute.

root/branches/1.3/lib/plugins/sfPropelPlugin/lib/widget/sfWidgetFormPropelChoiceMany.class.php

Revision 11540, 0.8 kB (checked in by fabien, 6 years ago)

[1.2] added a new choice widget family

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * sfWidgetFormPropelChoice represents a choice widget for a model where you can select multiple values.
13  *
14  * @package    symfony
15  * @subpackage widget
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 class sfWidgetFormPropelChoiceMany extends sfWidgetFormPropelChoice
20 {
21   /**
22    * Constructor.
23    *
24    * @see sfWidgetFormPropelChoice
25    */
26   protected function configure($options = array(), $attributes = array())
27   {
28     parent::configure($options, $attributes);
29
30     $this->setOption('multiple', true);
31   }
32 }
33
Note: See TracBrowser for help on using the browser.