MultiselectInput
class MultiselectInput extends MultiSelectBox implements IValidationInput
Class MultiselectInput.
Selectbox where multiple options can be selected.
Traits
Properties
protected array | $rawItems | from ChoiceInputTrait | |
string | $prompt | from InputPromptTrait |
Methods
Processes an associative array in a way that it has no nesting. Keys for nested arrays are lost, but nested arrays are merged.
Makes array of <option>. Can handle associative arrays just fine. Checks for duplicate values.
Check if a specific value is disabled. If whole control is disabled, returns false.
Sets the first unselectable item on list. Its value is null.
Modify control in such a way that it explicitly shows its validation state.
No description
No description
Details
in
ChoiceInputTrait
at line 35
array
flatAssocArray(array $array)
Processes an associative array in a way that it has no nesting. Keys for nested arrays are lost, but nested arrays are merged.
in
ChoiceInputTrait
at line 59
array
makeOptionList(array $items, callable $optionArgs, array $valuesRendered =
[])
Makes array of <option>. Can handle associative arrays just fine. Checks for duplicate values.
in
ChoiceInputTrait
at line 100
ChoiceInputTrait
setItems(array $items, bool $useKeys = TRUE)
in
ChoiceInputTrait
at line 117
protected bool
isControlDisabled()
Check if whole control is disabled.
This is false if only a set of values is disabled
in
ChoiceInputTrait
at line 131
protected bool
isValueDisabled($value)
Check if a specific value is disabled. If whole control is disabled, returns false.
in
ChoiceInputTrait
at line 149
protected bool
isValueSelected($value)
Self-explanatory
in
InputPromptTrait
at line 33
null|string
getPrompt()
in
InputPromptTrait
at line 43
InputPromptTrait
setPrompt(null|string $prompt)
Sets the first unselectable item on list. Its value is null.
in
StandardValidationTrait
at line 28
Html
showValidation(
Html
$control)
Modify control in such a way that it explicitly shows its validation state.
Returns the modified element.