Class NFormGroup


A user group of form controls.

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

line 39


Method Details

line 46

__construct

public NFormGroup __construct ()

Output
NFormGroup  

line 56

add

public NFormGroup add ()

Output
NFormGroup provides a fluent interface

line 79

getControls

public array getControls ()

Output
array IFormControl

line 119

getOption

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

Returns user-specific option.

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

line 130

getOptions

public array getOptions ()

Returns user-specific options.

Output
array  

line 100

setOption

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

Sets user-specific option.

Options recognized by NConventionalRenderer

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

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