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
Direct known subclasses
Budovy\BasePresenterIndirect known subclasses
Budovy\AuthorizeScheduledTaskPresenter, Budovy\BreakdownPresenter, Budovy\HomepagePresenter, Budovy\OperationPresenter, Budovy\PeriodicTaskPresenter, Budovy\PeriodicTaskRealizationPresenter, Budovy\PeriodicTaskStatisticPresenter, Budovy\PlacePresenter, Budovy\PriorityPresenter, Budovy\ScheduledTaskPresenter, Budovy\ScheduledTaskRealizationPresenter, Budovy\ScheduledTaskStatisticPresenter, Budovy\BreakdownStatisticPresenter, Budovy\SignPresenter, Budovy\UnitPresenter, Budovy\UserPresenter, Budovy\ContactbindingPresenter, Budovy\ContactPresenter, Budovy\DocumentPresenter, Budovy\DocumenttypePresenter, Budovy\DownloadPresenter, Budovy\EmailPresenter, Budovy\ErrorPresenterNamespace: Nette\Application\UI
Author: David Grudl
Located at vendor/nette/nette/Nette/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
string
|
|
public
array
|
|
public
array
|
|
public static
string
|
|
public static
string
|
|
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
boolean
|
|
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
|
#
saveGlobalState( )
Permanently saves state information for all subcomponents to $this->globalState. |
public
array
|
|
public
boolean
|
|
public
|
|
public
|
#
injectPrimary(
|
protected
|
|
protected
|
|
public
|
|
public
|
createTemplate(),
flashMessage(),
getSnippetId(),
getTemplate(),
isControlInvalid(),
redrawControl(),
templatePrepareFilters()
|
__clone(),
addComponent(),
createComponent(),
getComponent(),
getComponents(),
removeComponent(),
validateChildComponent()
|
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod()
|
invalidateControl()
|
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
array
|
$onShutdown | |
#
of 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
array|null
|
$signal | |
public read-only
string
|
$action | |
public read-only
|
$payload | |
public read-only
boolean
|
$ajax | |
public read-only
|
$lastCreatedRequest | |
public read-only
|
$flashSession | |
public read-only
SystemContainer| |
$context | |
public read-only
|
$session | |
public read-only
|
$user |
$snippetId,
$template
|
$presenter,
$uniqueId
|
$components
|
$name,
$parent
|
$reflection
|