PHP Класс Nette\Application\Application

Автор: David Grudl
Наследование: extends Nette\Object
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$catchExceptions enable fault barrier?
$errorPresenter string
$maxLoop integer
$onError function (Application $sender, \Exception|\Throwable $e); Occurs when an unhandled exception occurs in the application
$onPresenter function (Application $sender, Presenter $presenter); Occurs when a presenter is created
$onRequest function (Application $sender, Request $request); Occurs when a new request is received
$onResponse function (Application $sender, IResponse $response); Occurs when a new response is ready for dispatch
$onShutdown function (Application $sender, \Exception|\Throwable $e = NULL); Occurs before the application shuts down
$onStartup function (Application $sender); Occurs before the application loads presenter

Открытые методы

Метод Описание
__construct ( Nette\Application\IPresenterFactory $presenterFactory, Nette\Application\IRouter $router, Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse )
createInitialRequest ( ) : Nette\Application\Request
getPresenter ( ) : Nette\Application\IPresenter Returns current presenter.
getPresenterFactory ( ) : Nette\Application\IPresenterFactory Returns presenter factory.
getRequests ( ) : Nette\Application\Request[] Returns all processed requests.
getRouter ( ) : Nette\Application\IRouter Returns router.
processException ( $e ) : void
processRequest ( Nette\Application\Request $request ) : void
run ( ) : void Dispatch a HTTP request to a front controller.

Описание методов

__construct() публичный Метод

public __construct ( Nette\Application\IPresenterFactory $presenterFactory, Nette\Application\IRouter $router, Nette\Http\IRequest $httpRequest, Nette\Http\IResponse $httpResponse )
$presenterFactory Nette\Application\IPresenterFactory
$router Nette\Application\IRouter
$httpRequest Nette\Http\IRequest
$httpResponse Nette\Http\IResponse

createInitialRequest() публичный Метод

public createInitialRequest ( ) : Nette\Application\Request
Результат Nette\Application\Request

getPresenter() публичный Метод

Returns current presenter.
public getPresenter ( ) : Nette\Application\IPresenter
Результат Nette\Application\IPresenter

getPresenterFactory() публичный Метод

Returns presenter factory.
public getPresenterFactory ( ) : Nette\Application\IPresenterFactory
Результат Nette\Application\IPresenterFactory

getRequests() публичный Метод

Returns all processed requests.
public getRequests ( ) : Nette\Application\Request[]
Результат Nette\Application\Request[]

getRouter() публичный Метод

Returns router.
public getRouter ( ) : Nette\Application\IRouter
Результат Nette\Application\IRouter

processException() публичный Метод

public processException ( $e ) : void
Результат void

processRequest() публичный Метод

public processRequest ( Nette\Application\Request $request ) : void
$request Nette\Application\Request
Результат void

run() публичный Метод

Dispatch a HTTP request to a front controller.
public run ( ) : void
Результат void

Описание свойств

$catchExceptions публичное свойство

enable fault barrier?
public $catchExceptions

$errorPresenter публичное свойство

public string $errorPresenter
Результат string

$maxLoop публичное статическое свойство

public static int $maxLoop
Результат integer

$onError публичное свойство

function (Application $sender, \Exception|\Throwable $e); Occurs when an unhandled exception occurs in the application
public $onError

$onPresenter публичное свойство

function (Application $sender, Presenter $presenter); Occurs when a presenter is created
public $onPresenter

$onRequest публичное свойство

function (Application $sender, Request $request); Occurs when a new request is received
public $onRequest

$onResponse публичное свойство

function (Application $sender, IResponse $response); Occurs when a new response is ready for dispatch
public $onResponse

$onShutdown публичное свойство

function (Application $sender, \Exception|\Throwable $e = NULL); Occurs before the application shuts down
public $onShutdown

$onStartup публичное свойство

function (Application $sender); Occurs before the application loads presenter
public $onStartup