mName = $name;
$this->mValue = $value;
}
function setAsPassword($name) { $this->mPassword = $name; }
function getAsPassword() { return $this->mPassword; }
function toStringControl() {
if (!$this->isRenderable()) return "";
if (!$this->isEnable()) {
$html = "mName\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
} else {
if ($this->mId=="") $this->mId = $this->mName;
$html = "\n\tmPassword ? " 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\"";
$html .= " value=\"".htmlspecialchars($this->getValue())."\"";
$html .= ">";
}
return $html;
}
}