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
  • PHP

Classes

  • NButton
  • NCheckbox
  • NFormControl
  • NHiddenField
  • NImageButton
  • NMultiSelectBox
  • NRadioList
  • NSelectBox
  • NSubmitButton
  • NTextArea
  • NTextBase
  • NTextInput
  • NUploadControl
  • Overview
  • Package
  • Class
  • Tree

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

Implementation of

IFormControl::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
provides a fluent interface
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

NHtml
final 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
# getLabel( string $caption = NULL )

Generates label's HTML element.

Generates label's HTML element.

Parameters

$caption
string

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(), validateEqual(), validateFilled(), validateValid()
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
Nette Framework 2.0.3 (for PHP 5.2, prefixed) API API documentation generated by ApiGen 2.7.0