X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/cb8e3de960b758147b34d8323054e7de70548619..61efd9d023ae34c1290ef2e1ae25829c509caaee:/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 97a2a8ca..eb24259e 100644 --- a/WEB-INF/lib/form/UploadFile.class.php +++ b/WEB-INF/lib/form/UploadFile.class.php @@ -29,7 +29,7 @@ import('form.FormElement'); class UploadFile extends FormElement { - var $cClassName = "UploadFile"; + var $class = 'UploadFile'; var $mMaxSize = 100000; // 100kb function __construct($name,$value="") @@ -41,10 +41,9 @@ class UploadFile extends FormElement { function setMaxSize($value) { $this->mMaxSize = $value; } function getMaxSize() { return $this->mMaxSize; } - function toStringControl() { - if (!$this->isRenderable()) return ""; - - if ($this->id=="") $this->id = $this->name; + function getHtml() { + + if ($this->id=="") $this->id = $this->name; $html = "\n\tmMaxSize."\"/>"; $html .= "\n\t