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. |
string
: form action string
: form method (e.g. "get", "post") array
: CSS class applied to the form itself, not the table it contains array
: CSS style applied to the form itself, not the table it contains
TKFormTable::__construct | ( | $ | action = "" , |
|
$ | method = "post" | |||
) |
Creates a new form table.
$action | [string]: URL to submit form to | |
$method | [string]: 'get' or 'post' |
TKFormTable::addInput | ( | $ | input, | |
$ | label = "" , |
|||
$ | newRow = true | |||
) |
Adds another line of input to the form.
$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.
$name | [string]: HTML name attribute for submit button | |
$label | [string]: text displayed on submit button |