TKCheckBox Class Reference
[Form Elements]

Represents HTML checkbox. More...

Inheritance diagram for TKCheckBox:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($name, $value="", $checked=false)
 Creates a new checkbox.
 renderComponent ($class, $style, $events, $id)


Detailed Description

Represents HTML checkbox.

Events:
  • oncheck: called when checkbox is checked when previously unchecked
  • onuncheck: called when checkbox is unchecked when previously checked

Properties:
  • checked boolean: initial state of checkbox (checked or not)

Definition at line 15 of file TKCheckBox.php5.


Constructor & Destructor Documentation

TKCheckBox::__construct ( name,
value = "",
checked = false 
)

Creates a new checkbox.

Parameters:
$name [string]: name of checkbox variable
$value [string]: HTML value attribute of checkbox (not required)
$checked [boolean]: whether checkbox should be initially checked or not

Reimplemented from TKFormInput.

Definition at line 22 of file TKCheckBox.php5.

References TKComponent::addEvent(), TKComponent::addProperty(), and TKComponent::setAction().


Member Function Documentation

TKCheckBox::renderComponent ( class,
style,
events,
id 
)

For internal use only.

Reimplemented from TKFormInput.

Definition at line 38 of file TKCheckBox.php5.

References TKComponent::$id.


The documentation for this class was generated from the following file:

Generated on Wed Nov 24 02:06:54 2010 for Common by  doxygen 1.5.6