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:

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

getErrors

public array getErrors ()

Returns errors corresponding to control.

line 56

getRules

public Rules getRules ()

line 51

getValue

public mixed getValue ()

Returns control's value.

line 68

isDisabled

public bool isDisabled ()

Is control disabled?

line 38

loadHttpData

public void loadHttpData (array $data)

Loads HTTP data.

Input
array $data

line 45

setValue

public void setValue (mixed $value)

Sets control's value.

Input
mixed $value

line 75

translate

public string translate (string $s)

Returns translated string.

Input
string $s