AnewtFormRendererDefault class

Default form renderer.

Class Overview

Default form renderer.

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.

Public Methods

render_default()

Render the form into XHTML.

Protected Methods

_build_child_node($node) [protected]

Build XHTML for a form child.

Parameters

$node

A valid form child instance, e.g. AnewtFormControl or AnewtFormFieldset.

_build_form_control_node($control) [protected]

Build XHTML for a form control.

Parameters

$control

An AnewtFormControl instance.

_build_fieldset_node($fieldset) [protected]

Build XHTML for a fieldset.

Parameters

$fieldset

An AnewtFormFieldset instance.

_build_description_node($obj) [protected]

Build a description node.

_build_error_node($obj) [protected]

Build an error node.

Inheritance

Base Classes

Inherited members