Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • Form
  • FormContainer
  • FormGroup
  • Rule
  • Rules

Interfaces

  • IFormControl
  • IFormRenderer
  • ISubmitterControl
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (http://nette.org)
 5:  *
 6:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  * @package Nette\Forms
11:  */
12: 
13: 
14: 
15: /**
16:  * Defines method that must be implemented to allow a component to act like a form control.
17:  *
18:  * @author     David Grudl
19:  * @package Nette\Forms
20:  */
21: interface IFormControl
22: {
23: 
24:     /**
25:      * Loads HTTP data.
26:      * @return void
27:      */
28:     function loadHttpData();
29: 
30:     /**
31:      * Sets control's value.
32:      * @param  mixed
33:      * @return void
34:      */
35:     function setValue($value);
36: 
37:     /**
38:      * Returns control's value.
39:      * @return mixed
40:      */
41:     function getValue();
42: 
43:     /**
44:      * @return Rules
45:      */
46:     function getRules();
47: 
48:     /**
49:      * Returns errors corresponding to control.
50:      * @return array
51:      */
52:     function getErrors();
53: 
54:     /**
55:      * Is control disabled?
56:      * @return bool
57:      */
58:     function isDisabled();
59: 
60:     /**
61:      * Returns translated string.
62:      * @param  string
63:      * @param  int      plural count
64:      * @return string
65:      */
66:     function translate($s, $count = NULL);
67: 
68: }
69: 
Nette Framework 2.0.8 (for PHP 5.2, un-prefixed) API API documentation generated by ApiGen 2.8.0