// +----------------------------------------------------------------------+
import('form.FormElement');
-
+
class TextField extends FormElement {
- function __construct($name,$value="")
- {
- $this->class = 'TextField';
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name)
+ {
+ $this->class = 'TextField';
+ $this->name = $name;
+ }
+ // TODO: refactoring ongoing down from here.
function getHtml() {
if (!$this->isEnabled()) {
$html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";