Packages

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

Classes

  • NAppForm
  • NApplication
  • NCliRouter
  • NControl
  • NDownloadResponse
  • NForwardingResponse
  • NJsonResponse
  • NLink
  • NMultiRouter
  • NPresenter
  • NPresenterComponent
  • NPresenterLoader
  • NPresenterRequest
  • NRedirectingResponse
  • NRenderResponse
  • NRoute
  • NSimpleRouter

Interfaces

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

Exceptions

  • NAbortException
  • NApplicationException
  • NBadRequestException
  • NBadSignalException
  • NForbiddenRequestException
  • NInvalidLinkException
  • NInvalidPresenterException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases

Class NApplication

Front Controller.

NObject
Extended by NApplication
Package: 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 NPresenter
# getPresenter( )

Returns current presenter.

Returns current presenter.

Returns

NPresenter
final public IServiceLocator
# getServiceLocator( )

Gets the service locator (experimental).

Gets the service locator (experimental).

Returns

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 IRouter
# getRouter( )

Returns router.

Returns router.

Returns

IRouter
public NApplication
# setRouter( IRouter $router )

Changes router.

Changes router.

Parameters

$router
IRouter

Returns

NApplication
provides a fluent interface
public IPresenterLoader
# getPresenterLoader( )

Returns presenter loader.

Returns presenter loader.

Returns

IPresenterLoader
public static IPresenterLoader
# createPresenterLoader( )

Returns

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 IHttpRequest
# getHttpRequest( )

Returns

IHttpRequest
protected IHttpResponse
# getHttpResponse( )

Returns

IHttpResponse
protected NSession
# getSession( $namespace = NULL )

Returns

NSession
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Properties summary
public static integer $maxLoop 20
#
public array $defaultServices array( 'Nette\\Application\\IRouter' => 'NMultiRouter', '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 (for PHP 5.2) API documentation generated by ApiGen 2.3.0