PHP Class Nette\Forms\ControlGroup

Author: David Grudl
Inheritance: extends Nette\Object
显示文件 Open project: nette/forms Class Usage Examples

Protected Properties

Property Type Description
$controls SplObjectStorage

Public Methods

Method Description
__construct ( )
add ( $items ) : self
getControls ( ) : Nette\Forms\IControl[]
getOption ( $key, $default = NULL ) : mixed Returns user-specific option.
getOptions ( ) : array Returns user-specific options.
setOption ( $key, $value ) : self Sets user-specific option.

Method Details

__construct() public method

public __construct ( )

add() public method

public add ( $items ) : self
return self

getControls() public method

public getControls ( ) : Nette\Forms\IControl[]
return Nette\Forms\IControl[]

getOption() public method

Returns user-specific option.
public getOption ( $key, $default = NULL ) : mixed
return mixed

getOptions() public method

Returns user-specific options.
public getOptions ( ) : array
return array

setOption() public method

Options recognized by DefaultFormRenderer - 'label' - textual or IHtmlString object label - 'visual' - indicates visual group - 'container' - container as Html object - 'description' - textual or IHtmlString object description - 'embedNext' - describes how render next group
public setOption ( $key, $value ) : self
return self

Property Details

$controls protected_oe property

protected SplObjectStorage $controls
return SplObjectStorage