Property | Type | Description | |
---|---|---|---|
$onAnchor | function (self $sender); Occurs when component is attached to presenter |
Property | Type | Description | |
---|---|---|---|
$params | array |
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. | |
checkRequirements ( $element ) : void | Checks for requirements such as authorization. | |
formatSignalMethod ( $signal ) : string | Formats signal handler method name -> case sensitivity doesn't matter. | |
getComponent ( $name, $need = TRUE ) : Nette\ComponentModel\IComponent | null | Returns component specified by name or path. | |
getComponents ( $deep = FALSE, $filterType = NULL ) : ArrayIterator | Iterates over components. | |
getParam ( $name = NULL, $default = NULL ) | ||
getParameter ( $name, $default = NULL ) : mixed | Returns component param. | |
getParameterId ( $name ) : string | Returns a fully-qualified name that uniquely identifies the parameter. | |
getParameters ( ) : array | Returns component parameters. | |
getPersistentParams ( ) : array | Returns array of classes persistent parameters. They have public visibility and are non-static. | |
getPresenter ( $need = TRUE ) : Nette\Application\UI\Presenter | null | Returns the presenter where this component belongs to. | |
getReflection ( ) : Nette\Application\UI\ComponentReflection | Access to reflection. | |
getUniqueId ( ) : string | Returns a fully-qualified name that uniquely identifies the component within the presenter hierarchy. | |
link ( $destination, $args = [] ) : string | Generates URL to presenter, action or signal. | |
loadState ( array $params ) : void | Loads state informations. | |
offsetExists ( $name ) : boolean | Does component specified by name exists? | |
offsetGet ( $name ) : Nette\ComponentModel\IComponent | Returns component specified by name. Throws exception if component doesn't exist. | |
offsetSet ( $name, $component ) : void | Adds the component to the container. | |
offsetUnset ( $name ) : void | Removes component from the container. | |
removeComponent ( Nette\ComponentModel\IComponent $component ) : void | Removes a component from the IContainer. | |
saveState ( array &$params, $reflection = NULL ) : void | Saves state informations for next request. | |
signalReceived ( $signal ) : void | Calls signal handler method. |
Method | Description | |
---|---|---|
attached ( $presenter ) : 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. | |
createComponent ( $name ) : Nette\ComponentModel\IComponent |
Component factory. Delegates the creation of components to a createComponent |
|
tryCall ( $method, array $params ) : boolean | Calls public method if exists. | |
validateChildComponent ( Nette\ComponentModel\IComponent $child ) : void | Descendant can override this method to disallow insert a child by throwing an Nette\InvalidStateException. | |
validateParent ( Nette\ComponentModel\IContainer $parent ) : void |
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 |
public checkRequirements ( $element ) : void | ||
return | void |
protected createComponent ( $name ) : Nette\ComponentModel\IComponent | ||
return | Nette\ComponentModel\IComponent | the created component (optionally) |
public static formatSignalMethod ( $signal ) : string | ||
return | string |
public getComponent ( $name, $need = TRUE ) : Nette\ComponentModel\IComponent | null | ||
return | Nette\ComponentModel\IComponent | null |
public getComponents ( $deep = FALSE, $filterType = NULL ) : ArrayIterator | ||
return | ArrayIterator |
public getParameter ( $name, $default = NULL ) : mixed | ||
return | mixed |
public getParameterId ( $name ) : string | ||
return | string |
public getParameters ( ) : array | ||
return | array |
public static getPersistentParams ( ) : array | ||
return | array |
public getPresenter ( $need = TRUE ) : Nette\Application\UI\Presenter | null | ||
return | Nette\Application\UI\Presenter | null |
public static getReflection ( ) : Nette\Application\UI\ComponentReflection | ||
return | Nette\Application\UI\ComponentReflection |
public getUniqueId ( ) : string | ||
return | string |
public offsetExists ( $name ) : boolean | ||
return | boolean |
public offsetGet ( $name ) : Nette\ComponentModel\IComponent | ||
return | Nette\ComponentModel\IComponent |
public offsetUnset ( $name ) : void | ||
return | void |
public removeComponent ( Nette\ComponentModel\IComponent $component ) : void | ||
$component | Nette\ComponentModel\IComponent | |
return | void |
public signalReceived ( $signal ) : void | ||
return | void |
protected validateChildComponent ( Nette\ComponentModel\IComponent $child ) : void | ||
$child | Nette\ComponentModel\IComponent | |
return | void |
protected validateParent ( Nette\ComponentModel\IContainer $parent ) : void | ||
$parent | Nette\ComponentModel\IContainer | |
return | void |
public $onAnchor |