Namespaces

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

Classes

  • Container
  • ControlGroup
  • Form
  • Helpers
  • Rule
  • Rules

Interfaces

  • IControl
  • IFormRenderer
  • ISubmitterControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class ControlGroup

A user group of form controls.

Nette\Object
Extended by Nette\Forms\ControlGroup
Namespace: Nette\Forms
Author: David Grudl
Located at Forms/ControlGroup.php
Methods summary
public
# __construct( )
public Nette\Forms\ControlGroup
# add( )

Returns

Nette\Forms\ControlGroup
public array
# getControls( )

Returns

array
IFormControl
public Nette\Forms\ControlGroup
# setOption( string $key, mixed $value )

Sets user-specific option. Options recognized by DefaultFormRenderer

  • 'label' - textual or Html object label
  • 'visual' - indicates visual group
  • 'container' - container as Html object
  • 'description' - textual or Html object description
  • 'embedNext' - describes how render next group

Sets user-specific option. Options recognized by DefaultFormRenderer

  • 'label' - textual or Html object label
  • 'visual' - indicates visual group
  • 'container' - container as Html object
  • 'description' - textual or Html object description
  • 'embedNext' - describes how render next group

Parameters

$key
string
key
$value
mixed
value

Returns

Nette\Forms\ControlGroup
public mixed
# getOption( string $key, mixed $default = NULL )

Returns user-specific option.

Returns user-specific option.

Parameters

$key
string
key
$default
mixed
default value

Returns

mixed
public array
# getOptions( )

Returns user-specific options.

Returns user-specific options.

Returns

array
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
protected SplObjectStorage $controls
#
Magic properties summary
public read-only array $controls
#
public read-only array $options
#
Magic properties inherited from Nette\Object
$reflection
Nette 2.1 API documentation generated by ApiGen 2.8.0