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
()
Loads HTTP data.
|
void |
setValue
(mixed $value)
Sets control's value.
|
string |
translate
(string $s, [int $count =
NULL ])
Returns translated string.
|
Method Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
line 52 getErrorspublic array getErrors () Returns errors corresponding to control. |
|||||||||
line 46 getRulespublic Rules getRules () |
|||||||||
line 41 getValuepublic mixed getValue () Returns control's value. |
|||||||||
line 58 isDisabledpublic bool isDisabled () Is control disabled? |
|||||||||
line 28 loadHttpDatapublic void loadHttpData () Loads HTTP data. |
|||||||||
line 35 setValuepublic void setValue (mixed $value) Sets control's value.
|
|||||||||
line 66 translatepublic string translate (string $s, [int $count = Returns translated string.
|