lamSelectListOption
extends lamListOption
in package
Boolean option for list configuration.
Tags
Table of Contents
- $helpID : mixed
- help ID
- $ID : mixed
- unique ID
- $name : mixed
- option name
- $options : mixed
- possible select options
- $value : mixed
- option value
- __construct() : lamBooleanListOption
- Creates a new selection list option.
- fillFromPostData() : array<string|int, mixed>
- Fills the config option from POST data.
- getID() : string
- Returns the option ID.
- getMetaHTML() : htmlResponsiveRow
- Returns the meta HTML data to display this option.
- getValue() : string
- Returns the option value. The value must not contain "=" and ";".
- setHelpID() : mixed
- Sets the help ID.
- setValue() : mixed
- Sets the config option value. The value must not contain "=" and ";".
Properties
$helpID
help ID
private
mixed
$helpID
$ID
unique ID
private
mixed
$ID
$name
option name
private
mixed
$name
$options
possible select options
private
mixed
$options
$value
option value
private
mixed
$value
Methods
__construct()
Creates a new selection list option.
public
__construct(string $name, array<string|int, mixed> $options, string $ID) : lamBooleanListOption
Parameters
- $name : string
-
name to show on config page
- $options : array<string|int, mixed>
-
list of possible values
- $ID : string
-
unique ID
Return values
lamBooleanListOption —config option
fillFromPostData()
Fills the config option from POST data.
public
fillFromPostData() : array<string|int, mixed>
Return values
array<string|int, mixed> —list of StatusMessages (array(
getID()
Returns the option ID.
public
getID() : string
Return values
string —ID
getMetaHTML()
Returns the meta HTML data to display this option.
public
getMetaHTML() : htmlResponsiveRow
Tags
Return values
htmlResponsiveRow —meta HTML
getValue()
Returns the option value. The value must not contain "=" and ";".
public
getValue() : string
Return values
string —value
setHelpID()
Sets the help ID.
public
setHelpID(Strign $id) : mixed
Parameters
- $id : Strign
-
help ID
Return values
mixed —setValue()
Sets the config option value. The value must not contain "=" and ";".
public
setValue(string $value) : mixed
Parameters
- $value : string