Class FormGroup (namespace Nette\Forms)


A user group of form controls.

Object
   |
   --FormGroup
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Forms/FormGroup.php (line 34)
Public Method Summary
FormGroup
FormGroup
add ()
array
mixed
getOption (string $key, [mixed $default = NULL])
Returns user-specific option.
array
Returns user-specific options.
FormControl
setOption (string $key, mixed $value)
Sets user-specific option.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
protected SplObjectStorage $controls

line 37


Method Details

line 44

__construct

public FormGroup __construct ()

Output
FormGroup  

line 54

add

public FormGroup add ()

Output
FormGroup provides a fluent interface

line 77

getControls

public array getControls ()

Output
array  

line 117

getOption

public mixed getOption (string $key, [mixed $default = NULL])

Returns user-specific option.

Input
string $key key
mixed $default default value
Output
mixed  

line 128

getOptions

public array getOptions ()

Returns user-specific options.

Output
array  

line 98

setOption

public FormControl setOption (string $key, mixed $value)

Sets user-specific option.

Options recognized by ConventionalRenderer

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

Input
string $key key
mixed $value value
Output
FormControl provides a fluent interface