Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

Exceptions

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Application

Front Controller.

Object
Extended by Application
Package: Nette\Application
Author: David Grudl
Located at Application/Application.php
Methods summary
public
# __construct( IPresenterFactory $presenterFactory, IRouter $router, IHttpRequest $httpRequest, IHttpResponse $httpResponse )
public
# run( )

Dispatch a HTTP request to a front controller.

Dispatch a HTTP request to a front controller.

public PresenterRequest[]
# getRequests( )

Returns all processed requests.

Returns all processed requests.

Returns

PresenterRequest[]
public IPresenter
# getPresenter( )

Returns current presenter.

Returns current presenter.

Returns

IPresenter
public IRouter
# getRouter( )

Returns router.

Returns router.

Returns

IRouter
public IPresenterFactory
# getPresenterFactory( )

Returns presenter factory.

Returns presenter factory.

Returns

IPresenterFactory
public
# storeRequest( $expiration = '+ 10 minutes' )

Deprecated

public
# restoreRequest( $key )

Deprecated

Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
public static integer $maxLoop 20
#
public boolean $catchExceptions
#

enable fault barrier?

enable fault barrier?

public string $errorPresenter
#
public array $onStartup
#

of function(Application $sender); Occurs before the application loads presenter

of function(Application $sender); Occurs before the application loads presenter

public array $onShutdown
#

of function(Application $sender, Exception $e = NULL); Occurs before the application shuts down

of function(Application $sender, Exception $e = NULL); Occurs before the application shuts down

public array $onRequest
#

of function(Application $sender, Request $request); Occurs when a new request is received

of function(Application $sender, Request $request); Occurs when a new request is received

public array $onResponse
#

of function(Application $sender, IResponse $response); Occurs when a new response is ready for dispatch

of function(Application $sender, IResponse $response); Occurs when a new response is ready for dispatch

public array $onError
#

of function(Application $sender, Exception $e); Occurs when an unhandled exception occurs in the application

of function(Application $sender, Exception $e); Occurs when an unhandled exception occurs in the application

public $allowedMethods
#

Deprecated

Magic properties summary
public read-only array $requests
#
public read-only IPresenter $presenter
#
public read-only IRouter $router
#
public read-only IPresenterFactory $presenterFactory
#
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0