Form Line Helper Class. More...
Public Member Functions | |
__construct ($name, $display_name=null, $type="text", $value="", $class="") | |
Constructor. | |
setValue ($value) | |
getValue () | |
getName () | |
Get the form line's input name. | |
getType () | |
Get the inner input type. | |
setChecked ($c) | |
Set the internal field as checked or not. | |
getInput () | |
Get the form line's input. | |
getLabel () | |
Get the form line's label. | |
Static Public Member Functions | |
static | export ($name, $display_name=null, $type="text", $value="", $class="") |
Constuctor static alias. |
Form Line Helper Class.
Definition at line 17 of file axFormLineHelper.class.php.
axFormLineHelper::__construct | ( | $ | name, |
$ | display_name = null , |
||
$ | type = "text" , |
||
$ | value = "" , |
||
$ | class = "" |
||
) |
Constructor.
The type parameter can be one of (the class used for the input field is in parenthesis):
string | $name | The line's name |
string | $display_name | [optional] [default null ] The display name |
string | $type | [optional] [default "text" ] The type of line |
scalar | $value | [optional] [default "" ] The input's values |
string | $classes | [optional] [default array() ] The CSS classe(s) |
LogicException | If the type doesn't correspond to a valid input type |
Definition at line 44 of file axFormLineHelper.class.php.
static axFormLineHelper::export | ( | $ | name, |
$ | display_name = null , |
||
$ | type = "text" , |
||
$ | value = "" , |
||
$ | class = "" |
||
) | [static] |
Constuctor static alias.
Constructor.
The type parameter can be one of (the class used for the input field is in parenthesis):
string | $name | The line's name |
string | $display_name | [optional] [default null ] The display name |
string | $type | [optional] [default "text" ] The type of line |
scalar | $value | [optional] [default "" ] The input's values |
string | $classes | [optional] [default array() ] The CSS classe(s) |
LogicException | If the type doesn't correspond to a valid input type |
Definition at line 158 of file axFormLineHelper.class.php.
Get the form line's input.
Definition at line 140 of file axFormLineHelper.class.php.
Get the form line's label.
Definition at line 148 of file axFormLineHelper.class.php.
Get the form line's input name.
Definition at line 111 of file axFormLineHelper.class.php.
Get the node's value (if any)
Reimplemented from axBaseHelper.
Definition at line 102 of file axFormLineHelper.class.php.
axFormLineHelper::setChecked | ( | $ | c | ) |
Set the internal field as checked or not.
string | $c |
Definition at line 130 of file axFormLineHelper.class.php.
axFormLineHelper::setValue | ( | $ | value | ) |
Set the node's value.
mixed | $value |
Reimplemented from axBaseHelper.
Definition at line 94 of file axFormLineHelper.class.php.