21 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
63 $this->setCaption($caption);
64 $this->setName($name);
65 $this->_size = intval($size);
66 $this->_maxlength = intval($maxlength);
67 $this->setValue($value);
85 function getMaxlength()
87 return $this->_maxlength;
96 function getValue($encode =
false)
98 return $encode ? htmlspecialchars($this->_value, ENT_QUOTES) : $this->_value;
106 function setValue($value)
108 $this->_value = $value;
118 return "<input type='text' name='" . $this->getName() .
"' title='" . $this->getTitle() .
"' id='" . $this->getName() .
"' size='" . $this->getSize() .
"' maxlength='" . $this->getMaxlength() .
"' value='" . $this->getValue() .
"'" . $this->getExtra() .
" />";