Axiom (v1.2.0)

A lightweight PHP framework
axFormLineHelper Class Reference

Form Line Helper Class. More...

+ Inheritance diagram for axFormLineHelper:

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.

Detailed Description

Form Line Helper Class.

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

Definition at line 17 of file axFormLineHelper.class.php.


Constructor & Destructor Documentation

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):

Parameters:
string$nameThe 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)
Exceptions:
LogicExceptionIf the type doesn't correspond to a valid input type

Definition at line 44 of file axFormLineHelper.class.php.


Member Function Documentation

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):

Parameters:
string$nameThe 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)
Exceptions:
LogicExceptionIf the type doesn't correspond to a valid input type
Returns:
axFormLineHelper

Definition at line 158 of file axFormLineHelper.class.php.

Get the form line's input.

Returns:
axBaseHelper

Definition at line 140 of file axFormLineHelper.class.php.

Get the form line's label.

Returns:
axLabelHelper

Definition at line 148 of file axFormLineHelper.class.php.

Get the form line's input name.

Returns:
string

Definition at line 111 of file axFormLineHelper.class.php.

Get the inner input type.

Returns:
string

Definition at line 120 of file axFormLineHelper.class.php.

Get the node's value (if any)

Returns:
mixed

Reimplemented from axBaseHelper.

Definition at line 102 of file axFormLineHelper.class.php.

Set the internal field as checked or not.

Parameters:
string$c
Returns:
axFormLineHelper

Definition at line 130 of file axFormLineHelper.class.php.

Set the node's value.

Parameters:
mixed$value
Returns:
axHelper

Reimplemented from axBaseHelper.

Definition at line 94 of file axFormLineHelper.class.php.


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