Some renaming.
[timetracker.git] / WEB-INF / lib / form / UploadFile.class.php
index 98fbe0a..7e76d64 100644 (file)
 import('form.FormElement');
        
 class UploadFile extends FormElement {
-    var $mValue;
-    var $cClassName            = "UploadFile";
+    var $class = 'UploadFile';
     var $mMaxSize              = 100000;       // 100kb
 
        function __construct($name,$value="")
        {
-               $this->name                     = $name;
-               $this->mValue                   = $value;
+               $this->name = $name;
+               $this->value = $value;
        }
        
        function setMaxSize($value)     { $this->mMaxSize = $value;     }
        function getMaxSize()   { return $this->mMaxSize; }
        
-       function toStringControl()      {
-               if (!$this->isRenderable()) return "";
-           
-           if ($this->id=="") $this->id = $this->name;
+       function toStringControl() {
+
+            if ($this->id=="") $this->id = $this->name;
            
                $html = "\n\t<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"".$this->mMaxSize."\"/>";
                $html .= "\n\t<input";