Class Presenter
Presenter component represents a webpage instance. It converts Request to IResponse.
- 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
- Nette\Application\UI\Control implements Nette\Application\UI\IRenderable
- Nette\Application\UI\Presenter implements Nette\Application\IPresenter
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|boolean
|
|
public
|
|
public
|
|
public
string|null
|
|
public
array
|
|
public
array
|
|
public static
string
|
|
public static
string
|
|
protected
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
forward( string|
Forward to another presenter or action. |
public
|
#
redirectUrl( string $url, integer $httpCode = null )
Redirect to another URL and ends presenter execution. |
public
string
|
|
public
|
|
public
boolean
|
|
public
|
#
canonicalize( string $destination = null, array $args = [] )
Conditional redirect to canonicalized URI. |
public
|
#
lastModified( string|integer|
Attempts to cache the sent entity by its last modification date. |
protected
string|null
|
#
createRequest(
Request/URL factory. |
protected
string
|
|
public static
|
#
argsToParams( string $class, string $method, array & $args, array $supplemental = [],
Converts list of arguments to named parameters. |
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. |
public
|
#
saveState( array & $params,
Saves state informations for next request. |
protected
|
#
saveGlobalState( )
Permanently saves state information for all subcomponents to $this->globalState. |
public
array
|
|
public
boolean
|
|
public
|
|
public
|
#
injectPrimary(
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
__clone(),
_isCloning(),
addComponent(),
createComponent(),
getComponent(),
getComponents(),
removeComponent(),
validateChildComponent()
|
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod()
|
integer |
INVALID_LINK_SILENT
bad link handling |
# 0b0000 |
integer |
INVALID_LINK_WARNING
bad link handling |
# 0b0001 |
integer |
INVALID_LINK_EXCEPTION
bad link handling |
# 0b0010 |
integer |
INVALID_LINK_TEXTUAL
bad link handling |
# 0b0100 |
string |
SIGNAL_KEY
|
# 'do' |
string |
ACTION_KEY
|
# 'action' |
string |
FLASH_KEY
|
# '_fid' |
string |
DEFAULT_ACTION
|
# 'default' |
NAME_SEPARATOR
|
public
integer
|
$invalidLinkMode
|
|
public
callable[]
|
$onStartup
function (Presenter $sender); Occurs when the presenter is starting |
|
public
callable[]
|
$onShutdown
function (Presenter $sender, IResponse $response = null); Occurs when the presenter is shutting down |
|
public
boolean
|
$autoCanonicalize
automatically call canonicalize() |
# true |
public
boolean
|
$absoluteUrls
use absolute Urls or paths? |
# false |
$snippetMode
|
$onAnchor,
$params
|
public
string
|
$view
|
public
string|boolean
|
$layout
|
public read-only
|
$request
|
public read-only
string
|
$action
|
public read-only
|
$payload
|
public read-only
|
$context
|
public read-only
|
$session
|
public read-only
|
$user
|
$template
|
$linkCurrent,
$presenter
|
$components
|
$name,
$parent
|