Container
class Container extends Component implements IContainer
ComponentContainer is default implementation of IContainer.
Constants
private NameRegexp |
|
Properties
T[] 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
Returns immediate child components.
Retrieves the entire hierarchy of components, including all nested child components (depth-first).
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, string|null $name, string|null $insertBefore = null)
Adds the component to the container.
at line 97
void
removeComponent(IComponent $component)
Removes the component from the container.
at line 114
final IComponent|null
getComponent(string $name, bool $throw = true)
Returns component specified by name or path.
at line 159
protected IComponent|null
createComponent(string $name)
Component factory. Delegates the creation of components to a createComponent
at line 185
final iterable
getComponents()
Returns immediate child components.
at line 207
final array
getComponentTree()
Retrieves the entire hierarchy of components, including all nested child components (depth-first).
at line 224
protected void
validateChildComponent(IComponent $child)
Descendant can override this method to disallow insert a child by throwing an Nette\InvalidStateException.
at line 235
__clone()
Object cloning.
at line 256
final Container|null
_isCloning()
internal |
Is container cloning now?