Class RadioList
Set of radio button controls.
- Object
-
Component implements IComponent
-
FormControl implements IFormControl
-
RadioList
public
|
#
__construct(
string
$label = NULL,
array
$items = NULL
)
Parameters$label string label$items array options from which to choose |
public
mixed
|
#
getValue(
bool
$raw = false
)
Returns selected radio value. |
public
bool
|
#
isFilled(
)
Has been any radio button selected? Has been any radio button selected? |
public
RadioList
|
#
setItems(
array
$items
)
Sets options from which to choose. Sets options from which to choose. Parameters$items arrayReturnsRadioList provides a fluent interface
|
final public
array
|
#
getItems(
)
Returns options from which to choose. Returns options from which to choose. |
final public
Html
|
#
getSeparatorPrototype(
)
Returns separator HTML element template. Returns separator HTML element template. |
final public
Html
|
#
getContainerPrototype(
)
Returns container HTML element template. Returns container HTML element template. |
public
Html
|
#
getControl(
mixed
$key = NULL
)
Generates control's HTML element. Generates control's HTML element. Parameters$key mixed |
public
void
|
#
getLabel(
string
$caption = NULL
)
Generates label's HTML element. Generates label's HTML element. Parameters$caption string |
Methods Inherited From FormControl
__construct(), attached(), getForm(), getHtmlName(), setHtmlId(), getHtmlId(), setAttribute(), setOption(), getOption(), getOptions(), setTranslator(), getTranslator(), translate(), setValue(), getValue(), isFilled(), setDefaultValue(), loadHttpData(), setDisabled(), isDisabled(), getControl(), getLabel(), getControlPrototype(), getLabelPrototype(), addRule(), addCondition(), addConditionOn(), getRules(), setRequired(), isRequired(), validateEqual(), validateFilled(), validateValid(), addError(), getErrors(), hasErrors(), cleanErrors()
Methods Inherited From Component
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From Component
NAME_SEPARATOR
protected
Html
|
$separator | NULL |
separator element template # |
protected
Html
|
$container | NULL |
container element template # |
protected
array
|
$items | array (
) |
# |
Properties Inherited From FormControl
$idMask, $caption, $value, $control, $label