Public Member Functions | |
| render_default () | |
| Render the form into XHTML. | |
Protected Member Functions | |
| _build_child_node ($node) | |
| Build XHTML for a form child. | |
| _build_form_control_node ($control) | |
| Build XHTML for a form control. | |
| _build_fieldset_node ($fieldset) | |
| Build XHTML for a fieldset. | |
| _build_description_node ($obj) | |
| Build a description node. | |
| _build_error_node ($obj) | |
| Build an error node. | |
This form renderer will render all controls into div elements, handles fieldsets and hidden inputs correctly, and supports custom nodes as well. The error, description and label properties are properly rendered before each control widget. Many output elements have class names for easy styling using CSS.
Definition at line 23 of file default.lib.php.
| AnewtFormRendererDefault::_build_child_node | ( | $ | node | ) | [protected] |
Build XHTML for a form child.
| $node | A valid form child instance, e.g. AnewtFormControl or AnewtFormFieldset. |
Definition at line 57 of file default.lib.php.
| AnewtFormRendererDefault::_build_form_control_node | ( | $ | control | ) | [protected] |
Build XHTML for a form control.
| $control | An AnewtFormControl instance. |
Definition at line 81 of file default.lib.php.
| AnewtFormRendererDefault::_build_fieldset_node | ( | $ | fieldset | ) | [protected] |
Build XHTML for a fieldset.
| $fieldset | An AnewtFormFieldset instance. |
Definition at line 145 of file default.lib.php.
1.5.9