Class Component
Component is the base class for all Presenter components.
Components are persistent objects located on a presenter. They have ability to own other child components, and interact with user. Components have properties for storing their status, and responds to user command.
- Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent uses Nette\SmartObject
- Nette\ComponentModel\Container implements Nette\ComponentModel\IContainer
- Nette\Application\UI\Component implements Nette\Application\UI\ISignalReceiver, Nette\Application\UI\IStatePersistent, ArrayAccess
Indirect known subclasses
Nette\Application\UI\Presenter
public
|
|
public
string
|
#
getUniqueId( )
Returns a fully-qualified name that uniquely identifies the component within the presenter hierarchy. |
protected
|
#
attached(
This method will be called when the component (or component's parent) becomes attached to a monitored object. Do not call this method yourself. |
protected
|
|
protected
boolean
|
|
public
|
|
public static
|
|
public
|
|
public
|
|
public
mixed
|
|
public
array
|
|
public
string
|
#
getParameterId( string $name )
Returns a fully-qualified name that uniquely identifies the parameter. |
public
|
|
public static
array
|
#
getPersistentParams( )
Returns array of classes persistent parameters. They have public visibility and are non-static. This default implementation detects persistent parameters by annotation @persistent. |
public
|
|
public static
string
|
#
formatSignalMethod( string $signal )
Formats signal handler method name -> case sensitivity doesn't matter. |
public
string
|
|
public
|
|
public
boolean
|
#
isLinkCurrent( string $destination = null, array|mixed $args = [] )
Determines whether it links to the current page. |
public
|
|
public
|
#
redirectPermanent( string $destination = null, array|mixed $args = [] )
Permanently redirects to presenter, action or signal. |
public
|
#
error( string $message = null, integer $httpCode =
Throws HTTP error. |
public
|
#
offsetSet( string $name,
Adds the component to the container. |
public
|
|
public
boolean
|
|
public
|
__clone(),
_isCloning(),
addComponent(),
createComponent(),
getComponent(),
getComponents(),
removeComponent(),
validateChildComponent()
|
__construct(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod()
|
NAME_SEPARATOR
|
public
callable[]
|
$onAnchor
function (self $sender); Occurs when component is attached to presenter |
|
protected
array
|
$params
|
# [] |
public read-only
|
$presenter
|
public read-only
boolean
|
$linkCurrent
|
$components
|
$name,
$parent
|