Method | Description | |
---|---|---|
__clone ( ) | Object cloning. | |
_isCloning ( ) : null | Nette\ComponentModel\IComponent | Is container cloning now? | |
addComponent ( Nette\ComponentModel\IComponent $component, $name, $insertBefore = NULL ) : self | Adds the specified component to the IContainer. | |
getComponent ( $name, $need = TRUE ) : Nette\ComponentModel\IComponent | null | Returns component specified by name or path. | |
getComponents ( $deep = FALSE, $filterType = NULL ) : ArrayIterator | Iterates over components. | |
removeComponent ( Nette\ComponentModel\IComponent $component ) : void | Removes a component from the IContainer. |
Method | Description | |
---|---|---|
createComponent ( $name ) : Nette\ComponentModel\IComponent |
Component factory. Delegates the creation of components to a createComponent |
|
validateChildComponent ( Nette\ComponentModel\IComponent $child ) : void | Descendant can override this method to disallow insert a child by throwing an Nette\InvalidStateException. |
public _isCloning ( ) : null | Nette\ComponentModel\IComponent | ||
return | null | Nette\ComponentModel\IComponent |
public addComponent ( Nette\ComponentModel\IComponent $component, $name, $insertBefore = NULL ) : self | ||
$component | Nette\ComponentModel\IComponent | |
return | self |
protected createComponent ( $name ) : Nette\ComponentModel\IComponent | ||
return | Nette\ComponentModel\IComponent | the created component (optionally) |
public getComponent ( $name, $need = TRUE ) : Nette\ComponentModel\IComponent | null | ||
return | Nette\ComponentModel\IComponent | null |
public getComponents ( $deep = FALSE, $filterType = NULL ) : ArrayIterator | ||
return | ArrayIterator |
public removeComponent ( Nette\ComponentModel\IComponent $component ) : void | ||
$component | Nette\ComponentModel\IComponent | |
return | void |
protected validateChildComponent ( Nette\ComponentModel\IComponent $child ) : void | ||
$child | Nette\ComponentModel\IComponent | |
return | void |