Class NRadioList
Set of radio button controls.
- NObject
-
NComponent implements IComponent
-
NFormControl implements IFormControl
-
NRadioList
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
NRadioList
|
#
setItems(
array
$items
)
Sets options from which to choose. Sets options from which to choose. Parameters$items arrayReturnsNRadioList provides a fluent interface
|
final public
array
|
#
getItems(
)
Returns options from which to choose. Returns options from which to choose. |
final public
NHtml
|
#
getSeparatorPrototype(
)
Returns separator HTML element template. Returns separator HTML element template. |
final public
NHtml
|
#
getContainerPrototype(
)
Returns container HTML element template. Returns container HTML element template. |
public
NHtml
|
#
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 |
public static
bool
|
#
validateFilled(
IFormControl
$control
)
Filled validator: has been any radio button selected? Filled validator: has been any radio button selected? Parameters$control IFormControl |
Methods Inherited From NFormControl
__construct(), attached(), getForm(), getHtmlName(), setHtmlId(), getHtmlId(), setAttribute(), setOption(), getOption(), getOptions(), setTranslator(), getTranslator(), translate(), setValue(), getValue(), setDefaultValue(), loadHttpData(), setDisabled(), isDisabled(), getControl(), getLabel(), getControlPrototype(), getLabelPrototype(), setRendered(), isRendered(), addRule(), addCondition(), addConditionOn(), getRules(), setRequired(), isRequired(), notifyRule(), validateEqual(), validateFilled(), validateValid(), addError(), getErrors(), hasErrors(), cleanErrors()
Methods Inherited From NComponent
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), setParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From NObject
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From NComponent
NAME_SEPARATOR
protected
NHtml
|
$separator | NULL |
separator element template # |
protected
NHtml
|
$container | NULL |
container element template # |
protected
array
|
$items | array (
) |
# |
Properties Inherited From NFormControl
$idMask, $caption, $value, $control, $label