import('form.FormElement');
class UploadFile extends FormElement {
- var $mValue;
- var $cClassName = "UploadFile";
+ var $class = 'UploadFile';
var $mMaxSize = 100000; // 100kb
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
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 toStringControl() {
+
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"".$this->mMaxSize."\"/>";
$html .= "\n\t<input";