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 NRadioList

Set of radio button controls.

NObject
Extended by NComponent implements IComponent
Extended by NFormControl implements IFormControl
Extended by NRadioList
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

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

Returns selected radio value.

Returns selected radio value.

Parameters

$raw
boolean

Returns

mixed

Overrides

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

Has been any radio button selected?

Has been any radio button selected?

Returns

boolean

Overrides

NFormControl::isFilled()
public NRadioList
# setItems( array $items )

Sets options from which to choose.

Sets options from which to choose.

Parameters

$items
array

Returns

NRadioList
public array
# getItems( )

Returns options from which to choose.

Returns options from which to choose.

Returns

array
public NHtml
# getSeparatorPrototype( )

Returns separator HTML element template.

Returns separator HTML element template.

Returns

NHtml
public NHtml
# getContainerPrototype( )

Returns container HTML element template.

Returns container HTML element template.

Returns

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

Generates control's HTML element.

Generates control's HTML element.

Parameters

$key
mixed

Returns

NHtml

Overrides

NFormControl::getControl()
public NHtml
# getLabel( string $caption = NULL )

Generates label's HTML element.

Generates label's HTML element.

Parameters

$caption
string

Returns

NHtml

Overrides

NFormControl::getLabel()
Methods inherited from NFormControl
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 NComponent
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor(), validateParent()
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Methods inherited from IComponent
setParent()
Constants inherited from IComponent
NAME_SEPARATOR
Properties summary
protected NHtml $separator
#

separator element template

separator element template

protected NHtml $container
#

container element template

container element template

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