Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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: sfWidgetFormSchemaForEach.class.php 9046 2008-05-19 08:13:51Z FabianLange $
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
}