1. sfWidgetFormSchemaForEach.class.php
  2. /** * sfWidgetFormSchemaForEach duplicates a given widget multiple times in a widget schema. * * @package symfony * @subpackage widget * @author Fabien Potencier * @version SVN: $Id: sfWidgetFormSchemaForEach.class.php 9046 2008-05-19 08:13:51Z FabianLange $ */
  3. class sfWidgetFormSchemaForEach extends sfWidgetFormSchema
  4. {
  5. /**
  6. * Constructor.
  7. *
  8. * @param sfWidgetFormSchema $widget An sfWidgetFormSchema instance
  9. * @param integer $count The number of times to duplicate the widget
  10. * @param array $options An array of options
  11. * @param array $attributes An array of default HTML attributes
  12. * @param array $labels An array of HTML labels
  13. *
  14. * @see sfWidgetFormSchema
  15. */
  16. public function __construct(sfWidgetFormSchema $widget, $count, $options = array(), $attributes = array(), $labels = array())
  17. {
  18. parent::__construct(array_fill(0, $count, $widget), $options, $attributes, $labels);
  19. }
  20. }

Debug toolbar