Class Checkbox (namespace Nette\Forms)


Check box control. Allows the user to select a true or false condition.

Object
   |
   --Component
      |
      --FormControl
         |
         --Checkbox
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Forms/Controls/Checkbox.php (line 34)
Public Method Summary
Checkbox
__construct (string $label)
Html
Generates control's HTML element.
void
setValue (bool $value)
Sets control's value.
Methods Inherited From FormControl
__construct(), addCondition(), addConditionOn(), addError(), addRule(), cleanErrors(), getControl(), getControlPrototype(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getLabel(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), getValue(), hasErrors(), isDisabled(), isRendered(), isRequired(), loadHttpData(), notifyRule(), setDisabled(), setHtmlId(), setOption(), setParent(), setRendered(), setRequired(), setTranslator(), setValue(), translate(), validateEqual(), validateFilled(), validateValid()
Methods Inherited From Component
__construct(), attached(), detached(), getName(), getParent(), getService(), getServiceLocator(), lookup(), lookupPath(), monitor(), setParent(), setServiceLocator(), validateParent(), __clone(), __wakeup()
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary

Method Details

line 40

__construct

public Checkbox __construct (string $label)

Input
string $label label
Output
Checkbox  

line 65

getControl

public Html getControl ()

Generates control's HTML element.

Output
Html  

line 54

setValue

public void setValue (bool $value)

Sets control's value.

Input
bool $value
Output
void