Container
class Container extends Component implements IContainer
ComponentContainer is default implementation of IContainer.
Properties
Iterator read-only | $components |
Methods
Adds the component to the container.
Returns component specified by name or path.
Component factory. Delegates the creation of components to a createComponent
Iterates over descendants components.
Descendant can override this method to disallow insert a child by throwing an Nette\InvalidStateException.
Object cloning.
Is container cloning now?
Details
at line 37
IContainer
addComponent(IComponent $component, string|int|null $name, string|int $insertBefore = null)
Adds the component to the container.
at line 96
void
removeComponent(IComponent $component)
Removes the component from the container.
at line 114
IComponent|null
getComponent(string|int $name, bool $throw = true)
Returns component specified by name or path.
at line 168
protected IComponent|null
createComponent(string $name)
Component factory. Delegates the creation of components to a createComponent
at line 189
Iterator
getComponents(bool $deep = false, string $filterType = null)
Iterates over descendants components.
at line 210
protected void
validateChildComponent(IComponent $child)
Descendant can override this method to disallow insert a child by throwing an Nette\InvalidStateException.
at line 221
__clone()
Object cloning.
at line 240
Container|null
_isCloning()
internal |
Is container cloning now?