Class Presenter
Presenter component represents a webpage instance. It converts Request to IResponse.
- Nette\Object
- Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent
- Nette\ComponentModel\Container implements Nette\ComponentModel\IContainer
- Nette\Application\UI\PresenterComponent implements Nette\Application\UI\ISignalReceiver, Nette\Application\UI\IStatePersistent, ArrayAccess
- Nette\Application\UI\Control implements Nette\Application\UI\IRenderable
- Nette\Application\UI\Presenter implements Nette\Application\IPresenter
Namespace: Nette\Application\UI
Author: David Grudl
Located at Application/UI/Presenter.php
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
array|null
|
|
public
boolean
|
#
isSignalReceiver( mixed $component, string $signal = NULL )
Checks if the signal receiver is the given one. |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string|false
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public static
string
|
|
public static
string
|
|
protected
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
redirectUrl( string $url, integer $code = NULL )
Redirect to another URL and ends presenter execution. |
public
|
#
error( string $message = NULL, integer $code =
Throws HTTP error. |
public
string
|
|
public
|
|
public
|
#
lastModified( string|integer|
Attempts to cache the sent entity by its last modification date. |
protected
string
|
#
handleInvalidLink(
Invalid link handler. Descendant can override this method to change default behaviour. |
public
string
|
|
public
|
|
public static
array
|
#
getPersistentComponents( )
Returns array of persistent components. This default implementation detects components by class-level annotation @persistent(cmp1, cmp2). |
protected
array
|
#
getGlobalState( $forClass = NULL )
Saves state information for all subcomponents to $this->globalState. |
protected
|
#
saveGlobalState( )
Permanently saves state information for all subcomponents to $this->globalState. |
public
boolean
|
|
public
|
|
public
|
#
injectPrimary(
|
public
SystemContainer|
|
|
final public
|
|
protected
|
|
protected
|
|
public
|
|
public
|
|
public
|
__clone(),
addComponent(),
createComponent(),
getComponent(),
getComponents(),
removeComponent(),
validateChildComponent()
|
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod()
|
setParent()
|
integer |
INVALID_LINK_SILENT
|
1 |
#
bad link handling |
integer |
INVALID_LINK_WARNING
|
2 |
#
bad link handling |
integer |
INVALID_LINK_EXCEPTION
|
3 |
#
bad link handling |
string |
SIGNAL_KEY
|
'do' |
|
string |
ACTION_KEY
|
'action' |
|
string |
FLASH_KEY
|
'_fid' |
|
string |
DEFAULT_ACTION
|
'default' |
NAME_SEPARATOR
|
public
integer
|
$invalidLinkMode |
|
|
public
callable[]
|
$onShutdown |
|
#
function (Presenter $sender, IResponse $response = NULL); Occurs when the presenter is shutting down |
public
boolean
|
$autoCanonicalize | TRUE |
#
automatically call canonicalize() |
public
boolean
|
$absoluteUrls | FALSE |
#
use absolute Urls or paths? |
$snippetMode
|
$params
|
public
string
|
$view | |
public
string
|
$layout | |
public read-only
|
$request | |
public read-only
string
|
$action | |
public read-only
|
$payload | |
public read-only
SystemContainer| |
$context | |
public read-only
|
$session | |
public read-only
|
$user |
$template
|
$presenter
|
$components
|
$name,
$parent
|
$reflection
|