AnewtFormFieldset class

Form fieldset.

Class Overview

Form fieldset.

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.

Public Methods

__construct($name)

Create a new fieldset.

Parameters

$name

A name for this fieldset.

add_control($control)

Add a control to this fieldset.

Parameters

$control

The form control instance to add.

add_node($node)

Add a custom node to this fieldset.

Parameters

$node

An AnewtXMLDomNode to embed in the form.

Private Attributes

$_controls [private]

Listing of controls.

$_children [private]

Listing of children.

Inheritance

Base Classes

Inherited members