PHP 클래스 Nette\Application\Application

저자: David Grudl
상속: extends Nette\Object
파일 보기 프로젝트 열기: nette/application 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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