X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FUploadFile.class.php;h=e46f29d3128e4e07650115ec30e45f56c14b4b09;hb=e897b5c63d2e36b018970e1305760fc14976d7d3;hp=98fbe0aa687f0c7982a9fe9f40360173d320766c;hpb=6e59f47d1baf9e3d420b4a368dcc005d54b6e599;p=timetracker.git
diff --git a/WEB-INF/lib/form/UploadFile.class.php b/WEB-INF/lib/form/UploadFile.class.php
index 98fbe0aa..e46f29d3 100644
--- a/WEB-INF/lib/form/UploadFile.class.php
+++ b/WEB-INF/lib/form/UploadFile.class.php
@@ -29,23 +29,21 @@
import('form.FormElement');
class UploadFile extends FormElement {
- var $mValue;
- var $cClassName = "UploadFile";
- var $mMaxSize = 100000; // 100kb
+ var $mMaxSize = 100000; // 100kb // TODO: refactor this.
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->mValue = $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 toStringControl() {
- if (!$this->isRenderable()) return "";
-
- if ($this->id=="") $this->id = $this->name;
+ function getHtml() {
+
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\tmMaxSize."\"/>";
$html .= "\n\t