X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FUploadFile.class.php;h=cfb671209e6046ca1e441bb8f5a6b3ba88484d5b;hb=e1703495130c8ed88fe210f50a2a6b453b3c566b;hp=eb24259e97ed4e4f5ce2ee204f1fa190a7108db0;hpb=61efd9d023ae34c1290ef2e1ae25829c509caaee;p=timetracker.git 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; }