Class NRadioList
Set of radio button controls.
-
NObject
-
NComponent
implements
IComponent
-
NFormControl
implements
IFormControl
-
NRadioList
Methods summary
public
|
#
__construct( string $label = NULL, array $items = NULL )
Parameters
- $label
string label
- $items
array options from which to choose
|
public
mixed
|
#
getValue( boolean $raw = FALSE )
Returns selected radio value.
Returns selected radio value.
Parameters
Returns
mixed
Implementation of
|
public
NRadioList
|
#
setItems( array $items )
Sets options from which to choose.
Sets options from which to choose.
Parameters
Returns
|
final public
array
|
#
getItems( )
Returns options from which to choose.
Returns options from which to choose.
Returns
array
|
final public
NHtml
|
#
getSeparatorPrototype( )
Returns separator HTML element template.
Returns separator HTML element template.
Returns
|
final public
NHtml
|
#
getContainerPrototype( )
Returns container HTML element template.
Returns container HTML element template.
Returns
|
public
NHtml
|
#
getControl( mixed $key = NULL )
Generates control's HTML element.
Generates control's HTML element.
Parameters
Returns
|
public
|
#
getLabel( string $caption = NULL )
Generates label's HTML element.
Generates label's HTML element.
Parameters
|
public static
boolean
|
#
validateFilled( IFormControl $control )
Filled validator: has been any radio button selected?
Filled validator: has been any radio button selected?
Parameters
Returns
boolean
|
Methods inherited from NFormControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
loadHttpData(),
notifyRule(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setTranslator(),
setValue(),
translate(),
validateEqual(),
validateValid()
|
Methods inherited from NComponent
__clone(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor(),
validateParent()
|
Properties summary
protected
NHtml
|
$separator
|
|
#
separator element template
separator element template
|
protected
NHtml
|
$container
|
|
#
container element template
container element template
|
protected
array
|
$items
|
array() |
|