Development

/branches/1.2/lib/widget/sfWidgetFormSelectMany.class.php

You must first sign up to be able to contribute.

root/branches/1.2/lib/widget/sfWidgetFormSelectMany.class.php

Revision 9046, 0.9 kB (checked in by FabianLange, 6 years ago)

1.1: fixed @param phpdoc to fit specs in widgets (refs #2991)

  • 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  * sfWidgetFormSelectMany represents a select HTML tag 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 sfWidgetFormSelectMany extends sfWidgetFormSelect
20 {
21   /**
22    * @param array $options     An array of options
23    * @param array $attributes  An array of default HTML attributes
24    *
25    * @see sfWidgetFormSelect
26    */
27   protected function configure($options = array(), $attributes = array())
28   {
29     parent::configure($options, $attributes);
30
31     $this->setOption('multiple', true);
32   }
33 }
34
Note: See TracBrowser for help on using the browser.