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:

Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Forms/IFormControl.php (line 21)
Public Method Summary
array
Returns errors corresponding to control.
Rules
mixed
Returns control's value.
bool
Is control disabled?
void
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

getErrors

public array getErrors ()

Returns errors corresponding to control.

line 46

getRules

public Rules getRules ()

line 41

getValue

public mixed getValue ()

Returns control's value.

line 58

isDisabled

public bool isDisabled ()

Is control disabled?

line 28

loadHttpData

public void loadHttpData ()

Loads HTTP data.

line 35

setValue

public void setValue (mixed $value)

Sets control's value.

Input
mixed $value

line 66

translate

public string translate (string $s, [int $count = NULL])

Returns translated string.

Input
string $s
int $count plural count