Class Application (namespace Nette\Application)
Front Controller.
Object | --Application
| Public Method Summary | |
|---|---|
| Presenter |
getPresenter
()
Returns current presenter.
|
| IPresenterLoader |
Returns presenter loader.
|
| array |
getRequests
()
Returns all processed requests.
|
| IRouter |
getRouter
()
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 |
Changes router.
|
| string |
storeRequest
()
|
| Protected Method Summary | |
|---|---|
| protected IHttpRequest |
|
| protected IHttpResponse |
|
| protected Session |
getSession
()
|
| 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 getHttpRequestprotected IHttpRequest getHttpRequest ()
|
|||||||||||||||
|
line 368 getHttpResponseprotected IHttpResponse getHttpResponse ()
|
|||||||||||||||
|
line 236 getPresenterpublic Presenter getPresenter () Returns current presenter.
|
|||||||||||||||
|
line 307 getPresenterLoaderpublic IPresenterLoader getPresenterLoader () Returns presenter loader.
|
|||||||||||||||
|
line 225 getRequestspublic array getRequests () Returns all processed requests.
|
|||||||||||||||
|
line 284 getRouterpublic IRouter getRouter () Returns router.
|
|||||||||||||||
|
line 273 getServicepublic mixed getService (string $name, [bool $need = Gets the service object of the specified type.
|
|||||||||||||||
|
line 251 getServiceLocatorpublic IServiceLocator getServiceLocator () Gets the service locator (experimental).
|
|||||||||||||||
|
line 378 getSessionprotected Session getSession ()
|
|||||||||||||||
|
line 339 restoreRequestpublic void restoreRequest (string $key)
|
|||||||||||||||
|
line 82 runpublic void run () Dispatch a HTTP request to a front controller.
|
|||||||||||||||
|
line 296 setRouterpublic void setRouter (IRouter $router) Changes router.
|
|||||||||||||||
|
line 321 storeRequestpublic string storeRequest ()
|
|||||||||||||||
