Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class RadioList

Set of radio button controls.

Object
Extended by Component implements IComponent
Extended by FormControl implements IFormControl
Extended by RadioList
Package: Nette\Forms\Controls
Author: David Grudl
Located at Forms/Controls/RadioList.php
Methods summary
public
# __construct( string $label = NULL, array $items = NULL )

Parameters

$label
string
label
$items
array
options from which to choose

Overrides

FormControl::__construct()
public mixed
# getValue( boolean $raw = FALSE )

Returns selected radio value.

Returns selected radio value.

Parameters

$raw
boolean

Returns

mixed

Overrides

FormControl::getValue()
public boolean
# isFilled( )

Has been any radio button selected?

Has been any radio button selected?

Returns

boolean

Overrides

FormControl::isFilled()
public RadioList
# setItems( array $items )

Sets options from which to choose.

Sets options from which to choose.

Parameters

$items
array

Returns

RadioList
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

Html
public Html
# getContainerPrototype( )

Returns container HTML element template.

Returns container HTML element template.

Returns

Html
public Html
# getControl( mixed $key = NULL )

Generates control's HTML element.

Generates control's HTML element.

Parameters

$key
mixed

Returns

Html

Overrides

FormControl::getControl()
public Html
# getLabel( string $caption = NULL )

Generates label's HTML element.

Generates label's HTML element.

Parameters

$caption
string

Returns

Html

Overrides

FormControl::getLabel()
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()
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods inherited from IComponent
setParent()
Constants inherited from IComponent
NAME_SEPARATOR
Properties summary
protected Html $separator
#

separator element template

separator element template

protected Html $container
#

container element template

container element template

protected array $items array()
#
Properties inherited from FormControl
$caption, $control, $idMask, $label, $value
Magic properties summary
public array $items
#
public read-only Html $separatorPrototype
#
public read-only Html $containerPrototype
#
Magic properties inherited from FormControl
$control, $controlPrototype, $defaultValue, $disabled, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $options, $required, $rules, $translator, $value
Magic properties inherited from Component
$name, $parent
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0