Interface IComponentContainer (namespace Nette)
Containers are objects that logically contain zero or more IComponent components.
IComponent | --IComponentContainer
Public Method Summary | |
---|---|
void |
addComponent
(IComponent $component, string $name)
Adds the specified component to the IComponentContainer.
|
IComponent|NULL |
getComponent
(string $name)
Returns single component.
|
ArrayIterator |
Iterates over a components.
|
void |
removeComponent
(IComponent $component)
Removes a component from the IComponentContainer.
|
Methods Inherited From IComponent |
---|
getName(), getParent(), getServiceLocator(), setParent(), setServiceLocator() |
Constant Summary |
---|
Constants Inherited From IComponent |
---|
NAME_SEPARATOR |
Method Details | |||||||||
---|---|---|---|---|---|---|---|---|---|
line 43 addComponentpublic void addComponent (IComponent $component, string $name) Adds the specified component to the IComponentContainer.
|
|||||||||
line 57 getComponentpublic IComponent|NULL getComponent (string $name) Returns single component.
|
|||||||||
line 65 getComponentspublic ArrayIterator getComponents ([bool $deep = Iterates over a components.
|
|||||||||
line 50 removeComponentpublic void removeComponent (IComponent $component) Removes a component from the IComponentContainer.
|