X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/d2df33e87f20af74c9339c15d3a7fbacd9560ded..e1703495130c8ed88fe210f50a2a6b453b3c566b:/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 eb24259e..cfb67120 100644 --- a/WEB-INF/lib/form/UploadFile.class.php +++ b/WEB-INF/lib/form/UploadFile.class.php @@ -29,15 +29,16 @@ 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, $value = '') + { + $this->class = 'UploadFile'; + $this->name = $name; + $this->value = $value; + } + +// TODO: refactoring ongoing down from here. function setMaxSize($value) { $this->mMaxSize = $value; } function getMaxSize() { return $this->mMaxSize; }