TKFormTable Class Reference
[Form Elements]

Combines a form and a table for convenience. More...

Inheritance diagram for TKFormTable:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($action="", $method="post")
 Creates a new form table.
 addInput ($input, $label="", $newRow=true)
 Adds another line of input to the form.
 addSubmit ($name, $label)
 Adds a submit button to the form.


Detailed Description

Combines a form and a table for convenience.

Properties:
  • action string: form action
  • method string: form method (e.g. "get", "post")
  • form_class array: CSS class applied to the form itself, not the table it contains
  • form_style array: CSS style applied to the form itself, not the table it contains


Constructor & Destructor Documentation

TKFormTable::__construct ( action = "",
method = "post" 
)

Creates a new form table.

Parameters:
$action [string]: URL to submit form to
$method [string]: 'get' or 'post'


Member Function Documentation

TKFormTable::addInput ( input,
label = "",
newRow = true 
)

Adds another line of input to the form.

Parameters:
$input [TKFormElement]: input to add
$label [string]: label for input; appears to left of input
$newRow [boolean]: whether input should get a new row or should go on previous row

TKFormTable::addSubmit ( name,
label 
)

Adds a submit button to the form.

Parameters:
$name [string]: HTML name attribute for submit button
$label [string]: text displayed on submit button


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

Generated on Wed Nov 24 02:04:19 2010 for Common by  doxygen 1.5.6