Class NCheckbox


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

NObject
   |
   --NComponent
      |
      --NFormControl
         |
         --NCheckbox
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Forms/Controls/Checkbox.php (line 33)
Public Method Summary
NCheckbox
__construct ([string $label = NULL])
NHtml
Generates control's HTML element.
NCheckbox
setValue (bool $value)
Sets control's value.
Methods Inherited From NFormControl
__construct(), addCondition(), addConditionOn(), addError(), addRule(), attached(), 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 NComponent
__construct(), attached(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent(), __clone(), __wakeup()
Methods Inherited From NObject
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary

Method Details

line 39

__construct

public NCheckbox __construct ([string $label = NULL])

Input
string $label label
Output
NCheckbox  

line 65

getControl

public NHtml getControl ()

Generates control's HTML element.

Output
NHtml  

line 53

setValue

public NCheckbox setValue (bool $value)

Sets control's value.

Input
bool $value
Output
NCheckbox provides a fluent interface