Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • AppForm
  • Application
  • CliRouter
  • Control
  • DownloadResponse
  • ForwardingResponse
  • JsonResponse
  • Link
  • MultiRouter
  • Presenter
  • PresenterComponent
  • PresenterLoader
  • PresenterRequest
  • RedirectingResponse
  • RenderResponse
  • Route
  • SimpleRouter

Interfaces

  • IPartiallyRenderable
  • IPresenter
  • IPresenterLoader
  • IPresenterResponse
  • IRenderable
  • IRouter
  • ISignalReceiver
  • IStatePersistent

Exceptions

  • AbortException
  • ApplicationException
  • BadRequestException
  • BadSignalException
  • ForbiddenRequestException
  • InvalidLinkException
  • InvalidPresenterException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Class Application

Front Controller.

Nette\Object
Extended by Nette\Application\Application
Namespace: Nette\Application
Author: David Grudl
Located at Application/Application.php
Methods summary
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 PresenterRequest
final public Nette\Application\Presenter
# getPresenter( )

Returns current presenter.

Returns current presenter.

Returns

Nette\Application\Presenter
final public Nette\IServiceLocator
# getServiceLocator( )

Gets the service locator (experimental).

Gets the service locator (experimental).

Returns

Nette\IServiceLocator
final public object
# getService( string $name, array $options = NULL )

Gets the service object of the specified type.

Gets the service object of the specified type.

Parameters

$name
string
service name
$options
array
options in case service is not singleton

Returns

object
public Nette\Application\IRouter
# getRouter( )

Returns router.

Returns router.

Returns

Nette\Application\IRouter
public Nette\Application\Application
# setRouter( Nette\Application\IRouter $router )

Changes router.

Changes router.

Parameters

$router
Nette\Application\IRouter

Returns

Nette\Application\Application
provides a fluent interface
public Nette\Application\IPresenterLoader
# getPresenterLoader( )

Returns presenter loader.

Returns presenter loader.

Returns

Nette\Application\IPresenterLoader
public static Nette\Application\IPresenterLoader
# createPresenterLoader( )

Returns

Nette\Application\IPresenterLoader
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
protected Nette\Web\IHttpRequest
# getHttpRequest( )

Returns

Nette\Web\IHttpRequest
protected Nette\Web\IHttpResponse
# getHttpResponse( )

Returns

Nette\Web\IHttpResponse
protected Nette\Web\Session
# getSession( $namespace = NULL )

Returns

Nette\Web\Session
Methods inherited from Nette\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
public static integer $maxLoop 20
#
public array $defaultServices array( 'Nette\\Application\\IRouter' => 'Nette\Application\MultiRouter', 'Nette\\Application\\IPresenterLoader' => array(__CLASS__, 'createPresenterLoader'), )
#
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, PresenterRequest $request); Occurs when a new request is ready for dispatch

of function(Application $sender, PresenterRequest $request); Occurs when a new request 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 array $allowedMethods array('GET', 'POST', 'HEAD', 'PUT', 'DELETE')
#

of string

of string

Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0