ChoiceControl
abstract class ChoiceControl extends BaseControl
Choice control that allows single item selection.
Properties
bool | $checkAllowedValues | ||
array | $items | ||
mixed read-only | $selectedItem |
Methods
__construct($label = NULL, array $items = NULL)
No description
void
loadHttpData()
Loads HTTP data.
void
setValue($value)
Sets selected item (by key).
mixed
getValue()
Returns selected key.
string|int
getRawValue()
Returns selected key (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.
mixed
getSelectedItem()
Returns selected value.
setDisabled($value = TRUE)
Disables or enables control or items.
Details
at line 28
__construct($label = NULL, array $items = NULL)
No description
at line 41
void
loadHttpData()
Loads HTTP data.
at line 60
void
setValue($value)
internal |
Sets selected item (by key).
at line 75
mixed
getValue()
Returns selected key.
at line 85
string|int
getRawValue()
Returns selected key (not checked).
at line 95
bool
isFilled()
Is any item selected?
at line 107
ChoiceControl
setItems(array $items, $useKeys = TRUE)
Sets items from which to choose.
at line 118
array
getItems()
Returns items from which to choose.
at line 128
mixed
getSelectedItem()
Returns selected value.
at line 140
BaseControl
setDisabled($value = TRUE)
Disables or enables control or items.