Container
class Container extends Component implements IContainer
ComponentContainer is default implementation of IContainer.
Properties
Iterator read-only | $components |
Methods
Adds the specified component to the IContainer.
Returns component specified by name or path.
Component factory. Delegates the creation of components to a createComponent
Iterates over 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 38
IContainer
addComponent(IComponent $component, $name, $insertBefore = null)
Adds the specified component to the IContainer.
at line 97
void
removeComponent(IComponent $component)
Removes a component from the IContainer.
at line 115
IComponent|null
getComponent($name, $throw = true)
Returns component specified by name or path.
at line 180
protected IComponent|null
createComponent($name)
Component factory. Delegates the creation of components to a createComponent
at line 201
Iterator
getComponents($deep = false, $filterType = null)
Iterates over components.
at line 222
protected void
validateChildComponent(IComponent $child)
Descendant can override this method to disallow insert a child by throwing an Nette\InvalidStateException.
at line 233
__clone()
Object cloning.
at line 252
IComponent|null
_isCloning()
internal |
Is container cloning now?