API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct ($caption, $name, $value=null, $delimeter=' ') | |
getValue ($encode=false) | |
setValue ($value) | |
addOption ($value, $name='') | |
addOptionArray ($options) | |
getOptions ($encode=false) | |
getDelimeter ($encode=false) | |
render () | |
renderValidationJS () | |
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 | |
$_options = array() | |
$_value = array() | |
$_delimeter | |
$columns | |
Data Fields inherited from XoopsFormElement | |
$customValidationCode = array() | |
$_name | |
$_caption | |
$_accesskey = '' | |
$_class = array() | |
$_hidden = false | |
$_extra = array() | |
$_required = false | |
$_description = '' | |
$_nocolspan = false | |
$_formtype = '' | |
Class XoopsFormCheckBox
__construct | ( | $caption, | |
$name, | |||
$value = null , |
|||
$delimeter = ' ' |
|||
) |
Constructor
string | $caption | |
string | $name | |
mixed | $value | Either one value as a string or an array of them. |
string | $delimeter |
addOption | ( | $value, | |
$name = '' |
|||
) |
Add an option
string | $value | |
string | $name |
addOptionArray | ( | $options | ) |
Add multiple Options at once
array | $options | Associative array of value->name pairs |
getDelimeter | ( | $encode = false | ) |
Get the delimiter of this group
bool | $encode | To sanitizer the text? |
getOptions | ( | $encode = false | ) |
Get an array with all the options
bool | int | $encode | To sanitizer the text? potential values: 0 - skip; 1 - only for value; 2 - for both value and name |
getValue | ( | $encode = false | ) |
Get the "value"
bool | $encode | To sanitizer the text? |
render | ( | ) |
prepare HTML for output
Reimplemented from XoopsFormElement.
renderValidationJS | ( | ) |
Render custom javascript validation code
@seealso XoopsForm::renderValidationJS
Reimplemented from XoopsFormElement.
setValue | ( | $value | ) |
Set the "value"
array | $value |
$_delimeter |
$_options = array() |
$_value = array() |
$columns |