]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Combobox.class.php
Finished refactoring of the FormElement class.
[timetracker.git] / WEB-INF / lib / form / Combobox.class.php
index e253e8ec2e62f1ac9b97f80536e06a88a5501152..ce6673963aa4a7af1fea25c9dfa41f2f735b0180 100644 (file)
@@ -44,7 +44,7 @@ class Combobox extends FormElement {
     var $mCompareOn = "key"; // or "value"
     var $mDataDeep = 1;
     var $mDataKeys = array();
-    var $cClassName    = "Combobox";
+    var $class = 'Combobox';
 
        function __construct($name,$value="")
        {
@@ -65,7 +65,7 @@ class Combobox extends FormElement {
        function getDataKeys() { return $this->mDataKeys; }
        
        
-       function toStringControl() {
+       function getHtml() {
 
            if ($this->id=="") $this->id = $this->name;
            
@@ -84,7 +84,7 @@ class Combobox extends FormElement {
                if ($this->style!="")
                   $html .= " style=\"$this->style\"";
                 
-                if (!$this->isEnable())
+                if (!$this->isEnabled())
                   $html .= " disabled";
                   
                $html .= ">\n";