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  Copyright (c) 2004, 2010 David Grudl
  7. 7:  * @license    http://nettephp.com/license  Nette license
  8. 8:  * @link       http://nettephp.com
  9. 9:  * @category   Nette
  10. 10:  * @package    Nette
  11. 11:  */
  12. 12:  
  13. 13:  
  14. 14:  
  15. 15: /**
  16. 16:  * Provides functionality required by all components.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette
  20. 20:  */
  21. 21: interface IComponent
  22. 22: {
  23. 23:     /** Separator for component names in path concatenation. */
  24. 24:     const NAME_SEPARATOR '-';
  25. 25:  
  26. 26:     /**
  27. 27:      * @return string 
  28. 28:      */
  29. 29:     function getName();
  30. 30:  
  31. 31:     /**
  32. 32:      * Returns the container if any.
  33. 33:      * @return IComponentContainer|NULL
  34. 34:      */
  35. 35:     function getParent();
  36. 36:  
  37. 37:     /**
  38. 38:      * Sets the parent of this component.
  39. 39:      * @param  IComponentContainer 
  40. 40:      * @param  string 
  41. 41:      * @return void 
  42. 42:      */
  43. 43:     function setParent(IComponentContainer $parent NULL$name NULL);
  44. 44:  
  45. 45: }