PHP Class Nette\Forms\Controls\Checkbox

Inheritance: extends BaseControl
Mostra file Open project: nette/forms Class Usage Examples

Public Methods

Method Description
__construct ( $label = NULL )
getControl ( ) : Nette\Utils\Html Generates control's HTML element.
getControlPart ( ) : Nette\Utils\Html
getLabel ( $caption = NULL ) : void Bypasses label generation.
getLabelPart ( ) : Nette\Utils\Html
getSeparatorPrototype ( ) : Nette\Utils\Html Returns wrapper HTML element template.
isFilled ( ) : boolean Is control filled?
setValue ( $value ) : self Sets control's value.

Method Details

__construct() public method

public __construct ( $label = NULL )

getControl() public method

Generates control's HTML element.
public getControl ( ) : Nette\Utils\Html
return Nette\Utils\Html

getControlPart() public method

public getControlPart ( ) : Nette\Utils\Html
return Nette\Utils\Html

getLabel() public method

Bypasses label generation.
public getLabel ( $caption = NULL ) : void
return void

getLabelPart() public method

public getLabelPart ( ) : Nette\Utils\Html
return Nette\Utils\Html

getSeparatorPrototype() public method

Returns wrapper HTML element template.
public getSeparatorPrototype ( ) : Nette\Utils\Html
return Nette\Utils\Html

isFilled() public method

Is control filled?
public isFilled ( ) : boolean
return boolean

setValue() public method

Sets control's value.
public setValue ( $value ) : self
return self