Class NButton


Push button control with no default behavior.

NObject
   |
   --NComponent
      |
      --NFormControl
         |
         --NButton

Direct Known Sub-classes:

Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Forms/Controls/Button.php (line 33)
Public Method Summary
NButton
__construct ([string $caption = NULL])
NHtml
getControl ([string $caption = NULL])
Generates control's HTML element.
void
getLabel ([$caption = NULL])
Bypasses label generation.
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 NButton __construct ([string $caption = NULL])

Input
string $caption caption
Output
NButton  

line 63

getControl

public NHtml getControl ([string $caption = NULL])

Generates control's HTML element.

Input
string $caption
Output
NHtml  

line 51

getLabel

public void getLabel ([$caption = NULL])

Bypasses label generation.

Input
$caption
Output
void