Some more refactoring in Form classes.
[timetracker.git] / WEB-INF / lib / form / TextField.class.php
index 45455d0..044b3d6 100644 (file)
 // +----------------------------------------------------------------------+
 
 import('form.FormElement');
-       
+
 class TextField extends FormElement {
 
-       function __construct($name,$value="")
-       {
-            $this->class = 'TextField';
-               $this->name = $name;
-               $this->value = $value;
-       }
+  function __construct($name, $value = '')
+  {
+    $this->class = 'TextField';
+    $this->name = $name;
+    $this->value = $value;
+  }
 
+  // TODO: refactoring ongoing down from here.
        function getHtml() {
                if (!$this->isEnabled()) {
                        $html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";