◆ __construct()
__construct |
( |
|
$caption, |
|
|
|
$name, |
|
|
|
$value = null , |
|
|
|
$delimeter = ' ' |
|
) |
| |
Constructor
- Paramètres
-
string | $caption | Caption |
string | $name | "name" attribute |
string | $value | Pre-selected value |
string | $delimeter | |
◆ addOption()
addOption |
( |
|
$value, |
|
|
|
$name = '' |
|
) |
| |
Add an option
- Paramètres
-
string | $value | "value" attribute - This gets submitted as form-data. |
string | $name | "name" attribute - This is displayed. If empty, we use the "value" instead. |
◆ addOptionArray()
addOptionArray |
( |
|
$options | ) |
|
Adds multiple options
- Paramètres
-
array | $options | Associative array of value->name pairs. |
◆ getDelimeter()
getDelimeter |
( |
|
$encode = false | ) |
|
Get the delimiter of this group
- Paramètres
-
bool | $encode | To sanitizer the text? |
- Renvoie
- string The delimiter
◆ getOptions()
getOptions |
( |
|
$encode = false | ) |
|
Get an array with all the options
- Paramètres
-
bool | int | $encode | To sanitizer the text? potential values: 0 - skip; 1 - only for value; 2 - for both value and name |
- Renvoie
- array Associative array of value->name pairs
◆ getValue()
getValue |
( |
|
$encode = false | ) |
|
Get the "value" attribute
- Paramètres
-
bool | $encode | To sanitizer the text? |
- Renvoie
- string
◆ render()
Prepare HTML for output
- Renvoie
- string HTML
Réimplémentée à partir de XoopsFormElement.
◆ setValue()
Set the pre-selected value
- Paramètres
-
◆ $_delimeter
◆ $_options
◆ $_value
◆ $columns
La documentation de cette classe a été générée à partir du fichier suivant :