Class NHiddenField


Hidden form control used to store a non-displayed value.

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

__construct

public NHiddenField __construct ([$forcedValue = NULL])

Input
$forcedValue
Output
NHiddenField  

line 78

getControl

public NHtml getControl ()

Generates control's HTML element.

Output
NHtml  

line 54

getLabel

public void getLabel ([$caption = NULL])

Bypasses label generation.

Input
$caption
Output
void  

line 66

setValue

public NHiddenField setValue (string $value)

Sets control's value.

Input
string $value
Output
NHiddenField provides a fluent interface