]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/UploadFile.class.php
More cleanup in translation files.
[timetracker.git] / WEB-INF / lib / form / UploadFile.class.php
index eb24259e97ed4e4f5ce2ee204f1fa190a7108db0..e46f29d3128e4e07650115ec30e45f56c14b4b09 100644 (file)
 import('form.FormElement');
        
 class UploadFile extends FormElement {
 import('form.FormElement');
        
 class UploadFile extends FormElement {
-    var $class = 'UploadFile';
-    var $mMaxSize              = 100000;       // 100kb
+    var $mMaxSize              = 100000;       // 100kb // TODO: refactor this.
 
 
-       function __construct($name,$value="")
-       {
-               $this->name = $name;
-               $this->value = $value;
-       }
-       
+  function __construct($name)
+  {
+    $this->class = 'UploadFile';
+    $this->name = $name;
+  }
+
+// TODO: refactoring ongoing down from here.
        function setMaxSize($value)     { $this->mMaxSize = $value;     }
        function getMaxSize()   { return $this->mMaxSize; }
        
        function setMaxSize($value)     { $this->mMaxSize = $value;     }
        function getMaxSize()   { return $this->mMaxSize; }