20 defined(
'XOOPS_ROOT_PATH') or die("XOOPS root path not defined");
69 $this->setCaption($caption);
70 $this->setName($name);
72 $this->setValue($value);
81 function getValue($encode =
false)
83 return $encode ? htmlspecialchars($this->_value, ENT_QUOTES) : $this->_value;
91 function setValue($value)
93 $this->_value = $value;
103 return in_array( strtolower($this->_type), array(
"button",
"submit",
"reset") ) ? $this->_type :
"button";
113 return "<input type='" . $this->getType() .
"' class='formButton' name='" . $this->getName() .
"' id='" . $this->getName() .
"' value='" . $this->getValue() .
"' title='" . $this->getValue() .
"'" . $this->getExtra() .
" />";