Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • Button
  • Checkbox
  • ConventionalRenderer
  • FileUpload
  • Form
  • FormContainer
  • FormControl
  • FormGroup
  • HiddenField
  • ImageButton
  • InstantClientScript
  • MultiSelectBox
  • RadioList
  • Rule
  • Rules
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput

Interfaces

  • IFormControl
  • IFormRenderer
  • INamingContainer
  • ISubmitterControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class RadioList

Set of radio button controls.

Nette\Object
Extended by Nette\Component implements Nette\IComponent
Extended by Nette\Forms\FormControl implements Nette\Forms\IFormControl
Extended by Nette\Forms\RadioList
Namespace: Nette\Forms
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
public mixed
# getValue( boolean $raw = FALSE )

Returns selected radio value.

Returns selected radio value.

Parameters

$raw
boolean

Returns

mixed

Implementation of

Nette\Forms\IFormControl::getValue
public Nette\Forms\RadioList
# setItems( array $items )

Sets options from which to choose.

Sets options from which to choose.

Parameters

$items
array

Returns

Nette\Forms\RadioList
provides a fluent interface
final public array
# getItems( )

Returns options from which to choose.

Returns options from which to choose.

Returns

array
final public Nette\Web\Html
# getSeparatorPrototype( )

Returns separator HTML element template.

Returns separator HTML element template.

Returns

Nette\Web\Html
final public Nette\Web\Html
# getContainerPrototype( )

Returns container HTML element template.

Returns container HTML element template.

Returns

Nette\Web\Html
public Nette\Web\Html
# getControl( mixed $key = NULL )

Generates control's HTML element.

Generates control's HTML element.

Parameters

$key
mixed

Returns

Nette\Web\Html
public
# getLabel( string $caption = NULL )

Generates label's HTML element.

Generates label's HTML element.

Parameters

$caption
string
public static boolean
# validateFilled( Nette\Forms\IFormControl $control )

Filled validator: has been any radio button selected?

Filled validator: has been any radio button selected?

Parameters

$control
Nette\Forms\IFormControl

Returns

boolean
Methods inherited from Nette\Forms\FormControl
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 Nette\Component
__clone(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent()
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants inherited from Nette\IComponent
NAME_SEPARATOR
Properties summary
protected Nette\Web\Html $separator
#

separator element template

separator element template

protected Nette\Web\Html $container
#

container element template

container element template

protected array $items array()
#
Properties inherited from Nette\Forms\FormControl
$caption, $control, $idMask, $label, $value
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0