Méthode | Description | |
---|---|---|
__clone ( ) | Object cloning. | |
__construct ( ) | ||
__sleep ( ) | Prevents serialization. | |
__wakeup ( ) | Prevents unserialization. | |
getName ( ) : string | ||
getParent ( ) : Nette\ComponentModel\IContainer | null | Returns the container if any. | |
lookup ( $type, $need = TRUE ) : Nette\ComponentModel\IComponent | Lookup hierarchy for component specified by class or interface name. | |
lookupPath ( $type = NULL, $need = TRUE ) : string | Lookup for component specified by class or interface name. Returns backtrace path. | |
monitor ( $type ) : void | Starts monitoring. | |
setParent ( Nette\ComponentModel\IContainer $parent = NULL, $name = NULL ) : self | Sets the parent of this component. This method is managed by containers and should not be called by applications | |
unmonitor ( $type ) : void | Stops monitoring. |
Méthode | Description | |
---|---|---|
attached ( $obj ) : void | This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself. | |
detached ( $obj ) : void | This method will be called before the component (or component's parent) becomes detached from a monitored object. Do not call this method yourself. | |
validateParent ( Nette\ComponentModel\IContainer $parent ) : void | Is called by a component when it is about to be set new parent. Descendant can override this method to disallow a parent change by throwing an Nette\InvalidStateException |
Méthode | Description | |
---|---|---|
refreshMonitors ( $depth, &$missing = NULL, &$listeners = [] ) : void | Refreshes monitors. |
public lookup ( $type, $need = TRUE ) : Nette\ComponentModel\IComponent | ||
Résultat | Nette\ComponentModel\IComponent |
public lookupPath ( $type = NULL, $need = TRUE ) : string | ||
Résultat | string |
public setParent ( Nette\ComponentModel\IContainer $parent = NULL, $name = NULL ) : self | ||
$parent | Nette\ComponentModel\IContainer | |
Résultat | self |
protected validateParent ( Nette\ComponentModel\IContainer $parent ) : void | ||
$parent | Nette\ComponentModel\IContainer | |
Résultat | void |