Development

/branches/1.3/lib/widget/sfWidgetFormSchemaForEach.class.php

You must first sign up to be able to contribute.

root/branches/1.3/lib/widget/sfWidgetFormSchemaForEach.class.php

Revision 9046, 1.2 kB (checked in by FabianLange, 7 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  * sfWidgetFormSchemaForEach duplicates a given widget multiple times in a widget schema.
13  *
14  * @package    symfony
15  * @subpackage widget
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 class sfWidgetFormSchemaForEach extends sfWidgetFormSchema
20 {
21   /**
22    * Constructor.
23    *
24    * @param sfWidgetFormSchema $widget      An sfWidgetFormSchema instance
25    * @param integer            $count       The number of times to duplicate the widget
26    * @param array              $options     An array of options
27    * @param array              $attributes  An array of default HTML attributes
28    * @param array              $labels      An array of HTML labels
29    *
30    * @see sfWidgetFormSchema
31    */
32   public function __construct(sfWidgetFormSchema $widget, $count, $options = array(), $attributes = array(), $labels = array())
33   {
34     parent::__construct(array_fill(0, $count, $widget), $options, $attributes, $labels);
35   }
36 }
37
Note: See TracBrowser for help on using the browser.