Source for file IComponentContainer.php

Documentation is available at IComponentContainer.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:  * Containers are objects that logically contain zero or more IComponent components.
  17. 17:  *
  18. 18:  * @copyright  Copyright (c) 2004, 2010 David Grudl
  19. 19:  * @package    Nette
  20. 20:  */
  21. 21: interface IComponentContainer extends IComponent
  22. 22: {
  23. 23:  
  24. 24:     /**
  25. 25:      * Adds the specified component to the IComponentContainer.
  26. 26:      * @param  IComponent 
  27. 27:      * @param  string 
  28. 28:      * @return void 
  29. 29:      */
  30. 30:     function addComponent(IComponent $component$name);
  31. 31:  
  32. 32:     /**
  33. 33:      * Removes a component from the IComponentContainer.
  34. 34:      * @param  IComponent 
  35. 35:      * @return void 
  36. 36:      */
  37. 37:     function removeComponent(IComponent $component);
  38. 38:  
  39. 39:     /**
  40. 40:      * Returns single component.
  41. 41:      * @param  string 
  42. 42:      * @return IComponent|NULL
  43. 43:      */
  44. 44:     function getComponent($name);
  45. 45:  
  46. 46:     /**
  47. 47:      * Iterates over a components.
  48. 48:      * @param  bool    recursive?
  49. 49:      * @param  string  class types filter
  50. 50:      * @return ArrayIterator 
  51. 51:      */
  52. 52:     function getComponents($deep FALSE$filterType NULL);
  53. 53:  
  54. 54: }