Axiom (v1.2.0)

A lightweight PHP framework
axFieldsetHelper Class Reference

HTML Fieldset Helper Class. More...

+ Inheritance diagram for axFieldsetHelper:

Public Member Functions

 __construct ($legend="")
 Constructor.
 addLine ($name, $display_name=null, $type="text", $value="", $class="")
 Add a form-line to the fieldset.
 getLine ($name)
 Get a given line attached to the fieldset helper.
 setErrors (array $names)
 Mark the $names line as error (adding the CSS 'error' class)
 autoFill ($desc)

Static Public Member Functions

static export ($legend="")
 Constructor static alias.

Protected Attributes

 $_fieldset_lines = array()
 An associative map of the lines added to the fieldset.

Detailed Description

HTML Fieldset Helper Class.

This class creates and manages a form fieldset.

Author:
Delespierre
License:
http://www.gnu.org/licenses/lgpl.html Lesser General Public Licence version 3

Definition at line 18 of file axFieldsetHelper.class.php.


Constructor & Destructor Documentation

axFieldsetHelper::__construct ( legend = "")

Constructor.

Parameters:
string$legend[optional] [default ""] The fieldset legend (if any)

Definition at line 30 of file axFieldsetHelper.class.php.


Member Function Documentation

axFieldsetHelper::addLine ( name,
display_name = null,
type = "text",
value = "",
class = "" 
)

Add a form-line to the fieldset.

See also:
axFormLineHelper::export()
Parameters:
string$nameInput name
string$display_name[optional] [default null] The name to display
string$type[optional] [default "text"] The type of input to display
scalar$value[optional] [default ""] The value of input to display
string$class[optional] [default ""] The CSS classe(s) to apply
Returns:
axFieldsetHelper

Definition at line 47 of file axFieldsetHelper.class.php.

Fill the fieldset inner inputs automatically with a descriptor.

The $desc parameter can be either an array or a axModel instance.

Parameters:
mixed$desc
Returns:
axFieldsetHelper

Definition at line 84 of file axFieldsetHelper.class.php.

static axFieldsetHelper::export ( legend = "") [static]

Constructor static alias.

Constructor.

Parameters:
string$legend[optional] [default ""] The fieldset legend (if any)
Returns:
axFieldsetHelper

Definition at line 118 of file axFieldsetHelper.class.php.

Get a given line attached to the fieldset helper.

Parameters:
string$name
Returns:
axFormLineHelper

Definition at line 58 of file axFieldsetHelper.class.php.

axFieldsetHelper::setErrors ( array $  names)

Mark the $names line as error (adding the CSS 'error' class)

Parameters:
array$names
Returns:
axFieldsetHelper

Definition at line 68 of file axFieldsetHelper.class.php.


Field Documentation

array axFieldsetHelper::$_fieldset_lines = array() [protected]

An associative map of the lines added to the fieldset.

Definition at line 24 of file axFieldsetHelper.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables