X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FUploadFile.class.php;h=e46f29d3128e4e07650115ec30e45f56c14b4b09;hb=75a1eedb8977b8f2db459128bab9aaf367e3b58b;hp=c3a32763a623d16687a5cfb82a3810c80240319f;hpb=5532fe6cfc2125063ff8040cfa80e20089ac64b0;p=timetracker.git 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;