X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/5532fe6cfc2125063ff8040cfa80e20089ac64b0..48da6c320f5b4ff9fcfe0832e87b5ed48cdb1e60:/WEB-INF/lib/form/UploadFile.class.php diff --git a/WEB-INF/lib/form/UploadFile.class.php b/WEB-INF/lib/form/UploadFile.class.php index c3a32763..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 $cClassName = "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;