]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/TextField.class.php
Some further refactoring in form classes.
[timetracker.git] / WEB-INF / lib / form / TextField.class.php
index 45455d0d35e4e81f562e79399cc7e94ef7c14c32..044b3d6de0ebdeb9b68f5fd0681abf2925f5d480 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";