Interface IFormControl (namespace Nette\Forms)
Defines method that must be implemented to allow a component to act like a form control.
Direct Known Sub-interfaces:
| Public Method Summary | |
|---|---|
| array |
getErrors
()
Returns errors corresponding to control.
|
| Rules |
getRules
()
|
| mixed |
getValue
()
Returns control's value.
|
| bool |
isDisabled
()
Is control disabled?
|
| void |
loadHttpData
(array $data)
Loads HTTP data.
|
| void |
setValue
(mixed $value)
Sets control's value.
|
| string |
translate
(string $s)
Returns translated string.
|
| Method Details | ||||||
|---|---|---|---|---|---|---|
|
line 62 getErrorspublic array getErrors () Returns errors corresponding to control. |
||||||
|
line 56 getRulespublic Rules getRules () |
||||||
|
line 51 getValuepublic mixed getValue () Returns control's value. |
||||||
|
line 68 isDisabledpublic bool isDisabled () Is control disabled? |
||||||
|
line 38 loadHttpDatapublic void loadHttpData (array $data) Loads HTTP data.
|
||||||
|
line 45 setValuepublic void setValue (mixed $value) Sets control's value.
|
||||||
|
line 75 translatepublic string translate (string $s) Returns translated string.
|
||||||
