Packages

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

Classes

  • NApplication
  • NPresenterFactory
  • NPresenterRequest

Interfaces

  • IPresenter
  • IPresenterFactory
  • IPresenterResponse
  • IRouter

Exceptions

  • NAbortException
  • NApplicationException
  • NBadRequestException
  • NForbiddenRequestException
  • NInvalidPresenterException
  • Overview
  • Package
  • Class
  • Tree

Class NApplication

Front Controller.

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

Dispatch a HTTP request to a front controller.

Dispatch a HTTP request to a front controller.

final public array
# getRequests( )

Returns all processed requests.

Returns all processed requests.

Returns

array
of Request
final 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 string
# storeRequest( mixed $expiration = '+ 10 minutes' )

Stores current request to session.

Stores current request to session.

Parameters

$expiration
mixed
optional expiration time

Returns

string
key
public
# restoreRequest( string $key )

Restores current request to session.

Restores current request to session.

Parameters

$key
string
key
Methods inherited from NObject
__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 ready for dispatch

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

public array $onResponse
#

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

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

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

Nette Framework 2.0beta2 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0