Container
class Container extends Component implements IContainer
ComponentContainer is default implementation of IContainer.
Properties
ArrayIterator 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
void
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, $need = TRUE)
Returns component specified by name or path.
at line 180
protected IComponent
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 223
protected void
validateChildComponent(IComponent $child)
Descendant can override this method to disallow insert a child by throwing an Nette\InvalidStateException.
at line 234
__clone()
Object cloning.
at line 253
null|IComponent
_isCloning()
internal |
Is container cloning now?