◆ __construct()
__construct |
( |
|
$caption, |
|
|
|
$name, |
|
|
|
$value = null , |
|
|
|
$delimeter = ' ' |
|
) |
| |
Constructor
- Parameters
-
string | $caption | Caption |
string | $name | "name" attribute |
string | $value | Pre-selected value |
string | $delimeter | |
◆ addOption()
addOption |
( |
|
$value, |
|
|
|
$name = '' |
|
) |
| |
Add an option
- Parameters
-
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
- Parameters
-
array | $options | Associative array of value->name pairs. |
◆ getDelimeter()
getDelimeter |
( |
|
$encode = false | ) |
|
Get the delimiter of this group
- Parameters
-
bool | $encode | To sanitizer the text? |
- Returns
- string The delimiter
◆ getOptions()
getOptions |
( |
|
$encode = false | ) |
|
Get an array with all the options
- Parameters
-
bool | int | $encode | To sanitizer the text? potential values: 0 - skip; 1 - only for value; 2 - for both value and name |
- Returns
- array Associative array of value->name pairs
◆ getValue()
getValue |
( |
|
$encode = false | ) |
|
Get the "value" attribute
- Parameters
-
bool | $encode | To sanitizer the text? |
- Returns
- string
◆ render()
◆ setValue()
Set the pre-selected value
- Parameters
-
◆ $_delimeter
◆ $_options
◆ $_value
◆ $columns
The documentation for this class was generated from the following file: