Namespaces

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

Classes

  • Component
  • Container

Interfaces

  • IComponent
  • IContainer
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 6:  */
 7: 
 8: namespace Nette\ComponentModel;
 9: 
10: use Nette;
11: 
12: 
13: /**
14:  * Provides functionality required by all components.
15:  *
16:  * @author     David Grudl
17:  */
18: interface IComponent
19: {
20:     /** Separator for component names in path concatenation. */
21:     const NAME_SEPARATOR = '-';
22: 
23:     /**
24:      * @return string
25:      */
26:     function getName();
27: 
28:     /**
29:      * Returns the container if any.
30:      * @return IContainer|NULL
31:      */
32:     function getParent();
33: 
34:     /**
35:      * Sets the parent of this component.
36:      * @param  IContainer
37:      * @param  string
38:      * @return void
39:      */
40:     function setParent(IContainer $parent = NULL, $name = NULL);
41: 
42: }
43: 
Nette 2.1 API documentation generated by ApiGen 2.8.0