Class RadioList
Set of radio button controls.
-
Object
-
Component
implements
IComponent
-
FormControl
implements
IFormControl
-
RadioList
Methods summary
public
|
#
__construct( string $label = NULL, array $items = NULL )
Parameters
- $label
string label
- $items
array options from which to choose
Overrides
|
public
mixed
|
#
getValue( boolean $raw = FALSE )
Returns selected radio value.
Returns selected radio value.
Parameters
Returns
mixed
Overrides
|
public
boolean
|
#
isFilled( )
Has been any radio button selected?
Has been any radio button selected?
Returns
boolean
Overrides
|
public
RadioList
|
#
setItems( array $items )
Sets options from which to choose.
Sets options from which to choose.
Parameters
Returns
|
public
array
|
#
getItems( )
Returns options from which to choose.
Returns options from which to choose.
Returns
array
|
public
Html
|
#
getSeparatorPrototype( )
Returns separator HTML element template.
Returns separator HTML element template.
Returns
|
public
Html
|
#
getContainerPrototype( )
Returns container HTML element template.
Returns container HTML element template.
Returns
|
public
Html
|
#
getControl( mixed $key = NULL )
Generates control's HTML element.
Generates control's HTML element.
Parameters
Returns
Overrides
|
public
Html
|
#
getLabel( string $caption = NULL )
Generates label's HTML element.
Generates label's HTML element.
Parameters
Returns
Overrides
|
Methods inherited from FormControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
exportRules(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
isRequired(),
loadHttpData(),
setAttribute(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setRequired(),
setTranslator(),
setValue(),
translate()
|
Methods inherited from Component
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
Properties summary
protected
Html
|
$separator
|
|
#
separator element template
separator element template
|
protected
Html
|
$container
|
|
#
container element template
container element template
|
protected
array
|
$items
|
array() |
|
Magic properties inherited from FormControl
$control,
$controlPrototype,
$defaultValue,
$disabled,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$options,
$required,
$rules,
$translator,
$value
|