Public Member Functions | |
| __construct ($name) | |
| Create a new fieldset. | |
| add_control ($control) | |
| Add a control to this fieldset. | |
| add_node ($node) | |
| Add a custom node to this fieldset. | |
Private Attributes | |
| $_controls = array() | |
| Listing of controls. | |
| $_children = array() | |
| Listing of children. | |
A fieldset acts as a grouping container for a form. You can add controls and to it, and add the fieldset to an AnewtForm instance afterwards.
The label property is required and will be rendered as the <legend> XHTML element. You may also set the description and error properties, which are handled just like form and form control descriptions and error messages.
Definition at line 22 of file fieldset.lib.php.
| AnewtFormFieldset::__construct | ( | $ | name | ) |
Create a new fieldset.
| $name | A name for this fieldset. |
Reimplemented from AnewtContainer.
Definition at line 45 of file fieldset.lib.php.
| AnewtFormFieldset::add_control | ( | $ | control | ) |
Add a control to this fieldset.
| $control | The form control instance to add. |
Definition at line 65 of file fieldset.lib.php.
| AnewtFormFieldset::add_node | ( | $ | node | ) |
Add a custom node to this fieldset.
| $node | An AnewtXMLDomNode to embed in the form. |
Definition at line 78 of file fieldset.lib.php.
1.5.9