Source for file IComponent.php

Documentation is available at IComponent.php

  1. 1: <?php
  2. 2:  
  3. 3: /**
  4. 4:  * Nette Framework
  5. 5:  *
  6. 6:  * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
  7. 7:  *
  8. 8:  * This source file is subject to the "Nette license" that is bundled
  9. 9:  * with this package in the file license.txt.
  10. 10:  *
  11. 11:  * For more information please see http://nettephp.com
  12. 12:  *
  13. 13:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  14. 14:  * @license    http://nettephp.com/license  Nette license
  15. 15:  * @link       http://nettephp.com
  16. 16:  * @category   Nette
  17. 17:  * @package    Nette
  18. 18:  */
  19. 19:  
  20. 20:  
  21. 21:  
  22. 22: /**
  23. 23:  * Provides functionality required by all components.
  24. 24:  *
  25. 25:  * @author     David Grudl
  26. 26:  * @copyright  Copyright (c) 2004, 2009 David Grudl
  27. 27:  * @package    Nette
  28. 28:  */
  29. 29: interface IComponent
  30. 30: {
  31. 31:     /** Separator for component names in path concatenation. */
  32. 32:     const NAME_SEPARATOR '-';
  33. 33:  
  34. 34:     /**
  35. 35:      * @return string 
  36. 36:      */
  37. 37:     function getName();
  38. 38:  
  39. 39:     /**
  40. 40:      * Returns the container if any.
  41. 41:      * @return IComponentContainer|NULL
  42. 42:      */
  43. 43:     function getParent();
  44. 44:  
  45. 45:     /**
  46. 46:      * Sets the parent of this component.
  47. 47:      * @param  IComponentContainer 
  48. 48:      * @param  string 
  49. 49:      * @return void 
  50. 50:      */
  51. 51:     function setParent(IComponentContainer $parent NULL$name NULL);
  52. 52:  
  53. 53: }