Class Application (namespace Nette\Application)


Front Controller.

Object
   |
   --Application
Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Application/Application.php (line 36)
Public Method Summary
Presenter
Returns current presenter.
IPresenterLoader
Returns presenter loader.
array
Returns all processed requests.
IRouter
Returns router.
mixed
getService (string $name, [bool $need = TRUE])
Gets the service object of the specified type.
IServiceLocator
Gets the service locator (experimental).
void
restoreRequest (string $key)
void
run ()
Dispatch a HTTP request to a front controller.
void
setRouter (IRouter $router)
Changes router.
string
Protected Method Summary
protected IHttpRequest
protected IHttpResponse
protected Session
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
array $allowedMethods array('GET', 'POST', 'HEAD')

line 66

of string
bool $catchExceptions

line 48

enable fault barrier?
array $defaultServices array( 'Nette\Application\IRouter' => 'Nette\Application\MultiRouter',...

line 42

string $errorPresenter

line 51

static int $maxLoop 20

line 39

array $onError

line 63

of function(Application $sender, \Exception $e)
array $onRequest

line 60

of function(Application $sender, PresenterRequest $request)
array $onShutdown

line 57

of function(Application $sender, \Exception $e = NULL)
array $onStartup

line 54

of function(Application $sender)

Method Details

line 358

getHttpRequest

protected IHttpRequest getHttpRequest ()

Output
IHttpRequest  

line 368

getHttpResponse

protected IHttpResponse getHttpResponse ()

Output
IHttpResponse  

line 236

getPresenter

public Presenter getPresenter ()

Returns current presenter.

Output
Presenter  

line 307

getPresenterLoader

public IPresenterLoader getPresenterLoader ()

Returns presenter loader.

Output
IPresenterLoader  

line 225

getRequests

public array getRequests ()

Returns all processed requests.

Output
array of PresenterRequest

line 284

getRouter

public IRouter getRouter ()

Returns router.

Output
IRouter  

line 273

getService

public mixed getService (string $name, [bool $need = TRUE])

Gets the service object of the specified type.

Input
string $name service name
bool $need throw exception if service doesn't exist?
Output
mixed  

line 251

getServiceLocator

public IServiceLocator getServiceLocator ()

Gets the service locator (experimental).

Output
IServiceLocator  

line 378

getSession

protected Session getSession ()

Output
Session  

line 339

restoreRequest

public void restoreRequest (string $key)

Input
string $key
Output
void  

line 82

run

public void run ()

Dispatch a HTTP request to a front controller.

Output
void  

line 296

setRouter

public void setRouter (IRouter $router)

Changes router.

Input
IRouter $router
Output
void  

line 321

storeRequest

public string storeRequest ()

Output
string