MultiChoiceControl
abstract class MultiChoiceControl extends BaseControl
Choice control that allows multiple items selection.
Properties
array | $items | ||
array read-only | $selectedItems |
Methods
__construct($label = null, array $items = null)
No description
void
loadHttpData()
Loads HTTP data.
mixed
getValue()
Returns control's value.
array
getRawValue()
Returns selected keys (not checked).
bool
isFilled()
Is control filled?
setItems(array $items, bool $useKeys = true)
Sets items from which to choose.
array
getItems()
Returns items from which to choose.
array
getSelectedItems()
Returns selected values.
setDisabled(bool $value = true)
Disables or enables control.
string
getHtmlName()
Returns HTML name of control.
checkDefaultValue(bool $value = true)
No description
Details
at line 30
__construct($label = null, array $items = null)
No description
at line 39
void
loadHttpData()
Loads HTTP data.
at line 53
IControl
setValue($values)
internal |
Sets control's value.
at line 81
mixed
getValue()
Returns control's value.
at line 90
array
getRawValue()
Returns selected keys (not checked).
at line 99
bool
isFilled()
Is control filled?
at line 109
MultiChoiceControl
setItems(array $items, bool $useKeys = true)
Sets items from which to choose.
at line 119
array
getItems()
Returns items from which to choose.
at line 128
array
getSelectedItems()
Returns selected values.
at line 139
BaseControl
setDisabled(bool $value = true)
Disables or enables control.
at line 155
string
getHtmlName()
Returns HTML name of control.
at line 162
MultiChoiceControl
checkDefaultValue(bool $value = true)
No description