MultiChoiceControl
abstract class MultiChoiceControl extends BaseControl
Choice control that allows multiple items selection.
Properties
bool deprecated | $checkAllowedValues | ||
array | $items | ||
array read-only | $selectedItems |
Methods
__construct($label = null, array $items = null)
No description
void
loadHttpData()
Loads HTTP data.
mixed
getValue()
Returns selected keys.
array
getRawValue()
Returns selected keys (not checked).
bool
isFilled()
Is any item selected?
setItems(array $items, $useKeys = true)
Sets items from which to choose.
array
getItems()
Returns items from which to choose.
array
getSelectedItems()
Returns selected values.
setDisabled($value = true)
Disables or enables control or items.
string
getHtmlName()
Returns HTML name of control.
checkDefaultValue($value = true)
No description
Details
at line 31
__construct($label = null, array $items = null)
No description
at line 44
void
loadHttpData()
Loads HTTP data.
at line 59
IControl
setValue($values)
internal |
Sets selected items (by keys).
at line 88
mixed
getValue()
Returns selected keys.
at line 98
array
getRawValue()
Returns selected keys (not checked).
at line 108
bool
isFilled()
Is any item selected?
at line 120
MultiChoiceControl
setItems(array $items, $useKeys = true)
Sets items from which to choose.
at line 131
array
getItems()
Returns items from which to choose.
at line 141
array
getSelectedItems()
Returns selected values.
at line 152
BaseControl
setDisabled($value = true)
Disables or enables control or items.
at line 169
string
getHtmlName()
Returns HTML name of control.
at line 178
MultiChoiceControl
checkDefaultValue($value = true)
No description