API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct ($caption, $name, $size, $maxlength, $value='') | |
getSize () | |
getMaxlength () | |
getValue ($encode=false) | |
setValue ($value) | |
render () | |
Public Member Functions inherited from XoopsFormElement | |
__construct () | |
isContainer () | |
setName ($name) | |
getName ($encode=true) | |
setAccessKey ($key) | |
getAccessKey () | |
getAccessString ($str) | |
setClass ($class) | |
getClass () | |
setCaption ($caption) | |
getCaption ($encode=false) | |
getTitle ($encode=true) | |
setDescription ($description) | |
getDescription ($encode=false) | |
setHidden () | |
isHidden () | |
isRequired () | |
setExtra ($extra, $replace=false) | |
getExtra ($encode=false) | |
setNocolspan ($nocolspan=true) | |
getNocolspan () | |
getFormType () | |
setFormType ($value='') | |
renderValidationJS () | |
render () | |
Data Fields | |
$_size | |
$_maxlength | |
$_value | |
Data Fields inherited from XoopsFormElement | |
$customValidationCode = array() | |
$_name | |
$_caption | |
$_accesskey = '' | |
$_class = array() | |
$_hidden = false | |
$_extra = array() | |
$_required = false | |
$_description = '' | |
$_nocolspan = false | |
$_formtype = '' | |
A simple text field
__construct | ( | $caption, | |
$name, | |||
$size, | |||
$maxlength, | |||
$value = '' |
|||
) |
Constructor
string | $caption | Caption |
string | $name | "name" attribute |
int | $size | Size |
int | $maxlength | Maximum length of text |
string | $value | Initial text |
getMaxlength | ( | ) |
Get maximum text length
getSize | ( | ) |
Get size
getValue | ( | $encode = false | ) |
Get initial content
bool | $encode | To sanitizer the text? Default value should be "true"; however we have to set "false" for backward compatibility |
render | ( | ) |
Prepare HTML for output
Reimplemented from XoopsFormElement.
Reimplemented in XoopsFormColorPicker, and XoopsFormTextDateSelect.
setValue | ( | $value | ) |
Set initial text value
string | $value |
$_maxlength |
$_size |
$_value |