Axiom (v1.2.0)

A lightweight PHP framework
axSelectHelper Class Reference

Select Helper Class. More...

+ Inheritance diagram for axSelectHelper:

Public Member Functions

 __construct ($name, $values=array(), $multiple=false)
 Constructor.
 setValue ($value)
 getValue ()
 addOption ($name, $value)
 Add an option to the select.
 addOptions ($array)
 Add multiple options at once.

Static Public Member Functions

static export ($name, $values=array(), $multiple=false)
 Constructor static alias.

Detailed Description

Select Helper Class.

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

Definition at line 16 of file axSelectHelper.class.php.


Constructor & Destructor Documentation

axSelectHelper::__construct ( name,
values = array(),
multiple = false 
)

Constructor.

Parameters:
string$name
array$values[optional] [default array()]
boolean$multiple[optional] [default false]

Reimplemented from axBaseHelper.

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


Member Function Documentation

axSelectHelper::addOption ( name,
value 
)

Add an option to the select.

Parameters:
strign$name
scalar$value

Definition at line 65 of file axSelectHelper.class.php.

Add multiple options at once.

Parameters:
array$values
Returns:
axSelectHelper

Definition at line 76 of file axSelectHelper.class.php.

static axSelectHelper::export ( name,
values = array(),
multiple = false 
) [static]

Constructor static alias.

Constructor.

Parameters:
string$name
array$values[optional] [default array()]
boolean$multiple[optional] [default false]
Returns:
axSelectHelper

Definition at line 89 of file axSelectHelper.class.php.

Get the node's value (if any)

Returns:
mixed

Reimplemented from axBaseHelper.

Definition at line 56 of file axSelectHelper.class.php.

Set the node's value.

Parameters:
mixed$value
Returns:
axHelper

Reimplemented from axBaseHelper.

Definition at line 38 of file axSelectHelper.class.php.


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