X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/61efd9d023ae34c1290ef2e1ae25829c509caaee..1b74bf5bac7eb20285f7020f14b26e56f33df6c8:/WEB-INF/lib/form/UploadFile.class.php?ds=sidebyside diff --git a/WEB-INF/lib/form/UploadFile.class.php b/WEB-INF/lib/form/UploadFile.class.php index eb24259e..e46f29d3 100644 --- a/WEB-INF/lib/form/UploadFile.class.php +++ b/WEB-INF/lib/form/UploadFile.class.php @@ -29,15 +29,15 @@ 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; }