HTML_QuickForm::addGroup()
Параметр
- array $elements
array of elements composing the group
- string $name
(optional) group name
- mixed $groupLabel
(optional) group label
- mixed $separator
(optional) string or array of strings to separate elements
- boolean $appendName
(optional) specify whether the group name should be used in the form element name: groupName[elementName] vs elementName
Throws
Таблица 43-1. Возможные значения PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
QUICKFORM_INVALID_ELEMENT_NAME | Element '$elementName' already exists in HTML_QuickForm::addElement() | Tried to add a group having a name of an existing element | Choose a different name for a group |
Пример
Пример 43-1. Using addGroup()
|
Пред. | Начало | След. |
HTML_QuickForm | Уровень выше | Class Summary HTML_QuickForm_group |