AnewtFormFieldset Class Reference

Form fieldset. More...

List of all members.

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.


Detailed Description

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.

Definition at line 22 of file fieldset.lib.php.


Constructor & Destructor Documentation

AnewtFormFieldset::__construct ( name  ) 

Create a new fieldset.

Parameters:
$name A name for this fieldset.

Reimplemented from AnewtContainer.

Definition at line 45 of file fieldset.lib.php.


Member Function Documentation

AnewtFormFieldset::add_control ( control  ) 

Add a control to this fieldset.

Parameters:
$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.

Parameters:
$node An AnewtXMLDomNode to embed in the form.

Definition at line 78 of file fieldset.lib.php.


The documentation for this class was generated from the following file:

Generated on Sun Aug 2 22:54:37 2009 for Anewt by  doxygen 1.5.9