Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

SingleChoice Class Reference

Inheritance diagram for SingleChoice:

Inheritance graph
List of all members.

Detailed Description

A ControlChoice that only allows the selection of one option at a time.

Definition at line 2563 of file controls.php.

Public Member Functions

 SingleChoice ($control_class, $choice)
 The SingleChoice constructor.

 getValue ()
 Get the control's value.

 select ($id)
 Select an Option by ID.


Constructor & Destructor Documentation

SingleChoice::SingleChoice control_class,
choice
 

The SingleChoice constructor.

Parameters:
$control_class the class name of supported Option controls
$choice an array of choices with which to create Option controls

Definition at line 2570 of file controls.php.


Member Function Documentation

SingleChoice::getValue  ) 
 

Get the control's value.

An interface for retrieving a control's value. This should be overridden in a subclass to return a value.

Returns:
void

Reimplemented from ControlChoice.

Definition at line 2579 of file controls.php.

SingleChoice::select id  ) 
 

Select an Option by ID.

Parameters:
$id the ID of the option to select
Returns:
the result of calling Option::select() on the option

Reimplemented from ControlChoice.

Definition at line 2591 of file controls.php.


The documentation for this class was generated from the following file:
Generated on Mon Feb 14 11:39:53 2005 for FormControls by doxygen 1.3.5