extends |
XoopsFormElement |
---|
XOOPS form radio compo
You may not change or alter any portion of this comment or credits of supporting developers from this source code or any supporting source code which is considered copyrighted (c) material of the original comment or credit authors. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(string $caption, string $name, string|null $value = null, string $delimeter = ' ')
Constructor
Constructor Parameters
OverridesOverriden by |
# | ||||||
public
|
getValue(bool $encode = false): string
Get the "value" attribute
Get the "value" attribute Parameters
|
# | ||||||
public
|
setValue(string $value)
Set the pre-selected value
Set the pre-selected value |
# | ||||||
public
|
addOption(string $value, string $name = '')
Add an option
Add an option Parameters
|
# | ||||||
public
|
addOptionArray(array $options)
Adds multiple options
Adds multiple options Parameters
|
# | ||||||
public
|
getOptions(bool|int $encode = false): array
Get an array with all the options
Get an array with all the options Parameters
ReturnsAssociative array of value->name pairs |
# | ||||||
public
|
getDelimeter(bool $encode = false): string
Get the delimiter of this group
Get the delimiter of this group Parameters
ReturnsThe delimiter |
# | ||||||
public
|
render(): string
Prepare HTML for output
|
# |
Properties | |||
---|---|---|---|
public
|
array
|
$_options = []
|
# |
public
|
string
|
$_value
|
# |
public
|
int
|
$columns
|
# |
public
|
string
|
$_delimeter
|
# |
Properties inherited from XoopsFormElement |
---|
$customValidationCode, $_name, $_caption, $_accesskey, $_class, $_hidden, $_extra, $_required, $_description, $_nocolspan, $_formtype |