- function toStringControl() {
- if (!$this->isRenderable()) return "";
-
- if (!$this->isEnable()) {
- $html = "<input name=\"$this->mName\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
- } else {
-
- if ($this->mId=="") $this->mId = $this->mName;
-
- $html = "\n\t<input";
- $html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
- $html .= " name=\"$this->mName\" id=\"$this->mId\"";
-
- if ($this->mSize!="")
- $html .= " size=\"$this->mSize\"";
-
- if ($this->mStyle!="")
- $html .= " style=\"$this->mStyle\"";
-
- if ($this->mMaxLength!="")
- $html .= " maxlength=\"$this->mMaxLength\"";
-
- if ($this->mOnChange!="")
- $html .= " onchange=\"$this->mOnChange\"";