require_once 'HTML/QuickForm.php';
object &HTML_QuickForm::addGroup (array $elements [, string $name = NULL [, mixed $groupLabel = '' [, string $separator = NULL [, string $appendName = TRUE]]]])
object &HTML_QuickForm::addGroup
Adds an element group.
array of elements composing the group
(optional) group name
(optional) group label
(optional) string or array of strings to separate elements
(optional) specify whether the group name should be used in the form element name: groupName[elementName] vs elementName
return reference to added group of elements
Tableau 41-1. Valeurs PEAR_Error possibles
since 2.8
Cette fonction ne peut pas être appelée de façon statique.
Exemple 41-1. Using addGroup()
<?php $group[] =& HTML_QuickForm::createElement('text', 'first', 'First'); $group[] =& HTML_QuickForm::createElement('text', 'last', 'Last'); $form->addGroup($group, 'name', 'Name:', ', '); ?>