name = $name; $this->text = get_POST_var($name); // hmmmm I wonder if we have to sanitise? } function get() { return $this->text; } function isNone() { return '' == $this->text; } function input($type, $name, $value = '') { return ""; } function toForm(&$lines, $tab = ' ') { $action = ""; // $lines[] = "$tab
"; formOpen($lines, $tab); $this->toFormTable($lines, $tab . ' '); formSubmit($lines, $tab); formClose($lines, $tab); // $lines[] = "$tab
"; } function toFormTable(&$lines, $tab = ' ') { $lines[] = "$tab
"; $this->toForm2TD($lines, $tab . ' '); $lines[] = "$tab
"; } function toForm2TD(&$lines, $tab = ' ') { $lines[] = "$tab " . "Term:" . " "; $lines[] = "$tab " . $this->input('text', $this->name, $this->get()) . " "; } function toForm3TD(&$lines, $tab = ' ') { $this->toForm3TD($lines, $tab); $lines[] = "$tab " . ""; " "; } } ?>