HTML Fieldset Helper Class. More...
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. |
HTML Fieldset Helper Class.
This class creates and manages a form fieldset.
Definition at line 18 of file axFieldsetHelper.class.php.
axFieldsetHelper::__construct | ( | $ | legend = "" | ) |
Constructor.
string | $legend | [optional] [default "" ] The fieldset legend (if any) |
Definition at line 30 of file axFieldsetHelper.class.php.
axFieldsetHelper::addLine | ( | $ | name, |
$ | display_name = null , |
||
$ | type = "text" , |
||
$ | value = "" , |
||
$ | class = "" |
||
) |
Add a form-line to the fieldset.
string | $name | Input 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 |
Definition at line 47 of file axFieldsetHelper.class.php.
axFieldsetHelper::autoFill | ( | $ | desc | ) |
Fill the fieldset inner inputs automatically with a descriptor.
The $desc
parameter can be either an array or a axModel instance.
mixed | $desc |
Definition at line 84 of file axFieldsetHelper.class.php.
static axFieldsetHelper::export | ( | $ | legend = "" | ) | [static] |
Constructor static alias.
Constructor.
string | $legend | [optional] [default "" ] The fieldset legend (if any) |
Definition at line 118 of file axFieldsetHelper.class.php.
axFieldsetHelper::getLine | ( | $ | name | ) |
Get a given line attached to the fieldset helper.
string | $name |
Definition at line 58 of file axFieldsetHelper.class.php.
axFieldsetHelper::setErrors | ( | array $ | names | ) |
Mark the $names
line as error (adding the CSS 'error' class)
array | $names |
Definition at line 68 of file axFieldsetHelper.class.php.
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.