Class Application (namespace Nette\Application)
Front Controller.
Object | --Application
Public Method Summary | |
---|---|
static IPresenterLoader |
|
Presenter |
getPresenter
()
Returns current presenter.
|
IPresenterLoader |
Returns presenter loader.
|
array |
getRequests
()
Returns all processed requests.
|
IRouter |
getRouter
()
Returns router.
|
object |
getService
(string $name, [$options =
NULL ])
Gets the service object of the specified type.
|
IServiceLocator |
Gets the service locator (experimental).
|
void |
restoreRequest
(string $key)
Restores current request to session.
|
void |
run
()
Dispatch a HTTP request to a front controller.
|
Application |
Changes router.
|
string |
storeRequest
([mixed $expiration =
'+ 10 minutes' ])
Stores current request to session.
|
Protected Method Summary | |
---|---|
protected IHttpRequest |
|
protected IHttpResponse |
|
protected Session |
getSession
([$namespace =
NULL ])
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
array | $allowedMethods | array('GET', 'POST', 'HEAD', 'PUT', 'DELETE') |
line 51 of string |
|
bool | $catchExceptions |
|
line 33 enable fault barrier? |
|
array | $defaultServices | array(
'Nette\Application\IRouter' => 'Nette\Application\MultiRouter',... |
line 27 |
|
string | $errorPresenter |
|
line 36 |
|
static int | $maxLoop | 20 |
line 24 |
|
array | $onError |
|
line 48 of function(Application $sender, \Exception $e); Occurs when an unhandled exception occurs in the application |
|
array | $onRequest |
|
line 45 of function(Application $sender, PresenterRequest $request); Occurs when a new request is ready for dispatch |
|
array | $onShutdown |
|
line 42 of function(Application $sender, \Exception $e = NULL); Occurs before the application shuts down |
|
array | $onStartup |
|
line 39 of function(Application $sender); Occurs before the application loads presenter |
Method Details | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line 308 createPresenterLoaderpublic static IPresenterLoader createPresenterLoader ()
|
|||||||||||||||
line 363 getHttpRequestprotected IHttpRequest getHttpRequest ()
|
|||||||||||||||
line 373 getHttpResponseprotected IHttpResponse getHttpResponse ()
|
|||||||||||||||
line 222 getPresenterpublic Presenter getPresenter () Returns current presenter.
|
|||||||||||||||
line 294 getPresenterLoaderpublic IPresenterLoader getPresenterLoader () Returns presenter loader.
|
|||||||||||||||
line 211 getRequestspublic array getRequests () Returns all processed requests.
|
|||||||||||||||
line 270 getRouterpublic IRouter getRouter () Returns router.
|
|||||||||||||||
line 259 getServicepublic object getService (string $name, [$options = Gets the service object of the specified type.
|
|||||||||||||||
line 237 getServiceLocatorpublic IServiceLocator getServiceLocator () Gets the service locator (experimental).
|
|||||||||||||||
line 383 getSessionprotected Session getSession ([$namespace =
|
|||||||||||||||
line 343 restoreRequestpublic void restoreRequest (string $key) Restores current request to session.
|
|||||||||||||||
line 68 runpublic void run () Dispatch a HTTP request to a front controller.
|
|||||||||||||||
line 282 setRouterpublic Application setRouter (IRouter $router) Changes router.
|
|||||||||||||||
line 324 storeRequestpublic string storeRequest ([mixed $expiration = Stores current request to session.
|