X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FUploadFile.class.php;h=e46f29d3128e4e07650115ec30e45f56c14b4b09;hb=75a1eedb8977b8f2db459128bab9aaf367e3b58b;hp=7e76d64cbf474d37ffd2fdc0410c3677502a2902;hpb=ac5189157ef60820dd125400baee9f408a9ba2ea;p=timetracker.git diff --git a/WEB-INF/lib/form/UploadFile.class.php b/WEB-INF/lib/form/UploadFile.class.php index 7e76d64c..e46f29d3 100644 --- a/WEB-INF/lib/form/UploadFile.class.php +++ b/WEB-INF/lib/form/UploadFile.class.php @@ -29,19 +29,19 @@ 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 toStringControl() { + function getHtml() { if ($this->id=="") $this->id = $this->name;