PHP 클래스 Prado\Web\UI\ActiveControls\TActivePageAdapter

Callback request handler.
부터: 3.1
상속: extends Prado\Web\UI\TControlAdapter
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( TPage $control ) Constructor, trap errors and exception to let the callback response handle them.
getCallbackClientHandler ( ) : TCallbackClientScript Gets the callback client script handler. It handlers the javascript functions to be executed during the callback response.
getCallbackEventParameter ( ) : string Gets callback parameter.
getCallbackEventTarget ( ) : TControl
processCallbackEvent ( $writer ) Process the callback request.
registerControlToRender ( $control, $writer ) Register a control for defered render() call.
renderCallbackResponse ( $writer ) Render the callback response.
setCallbackEventParameter ( $value )
setCallbackEventTarget ( TControl $control ) Registers a control to raise callback event in the current request.

보호된 메소드들

메소드 설명
redirect ( $url ) Redirect url on the client-side using javascript.
renderResponse ( $writer ) Renders the callback response by adding additional callback data and javascript actions in the header and page state if required.
trapCallbackErrorsExceptions ( ) Trap errors and exceptions to be handled by TCallbackErrorHandler.

비공개 메소드들

메소드 설명
appendContentPart ( $response, $delimiter, $data ) Appends data or javascript code to the body content surrounded with delimiters
raiseCallbackEvent ( ) Trys to find the callback event handler and raise its callback event.

메소드 상세

__construct() 공개 메소드

Constructor, trap errors and exception to let the callback response handle them.
public __construct ( TPage $control )
$control Prado\Web\UI\TPage

getCallbackClientHandler() 공개 메소드

Gets the callback client script handler. It handlers the javascript functions to be executed during the callback response.
public getCallbackClientHandler ( ) : TCallbackClientScript
리턴 TCallbackClientScript callback client handler.

getCallbackEventParameter() 공개 메소드

Gets callback parameter.
public getCallbackEventParameter ( ) : string
리턴 string postback event parameter

getCallbackEventTarget() 공개 메소드

public getCallbackEventTarget ( ) : TControl
리턴 Prado\Web\UI\TControl the control responsible for the current callback event, null if nonexistent

processCallbackEvent() 공개 메소드

Process the callback request.
public processCallbackEvent ( $writer )

redirect() 보호된 메소드

Redirect url on the client-side using javascript.
protected redirect ( $url )

registerControlToRender() 공개 메소드

Register a control for defered render() call.
public registerControlToRender ( $control, $writer )

renderCallbackResponse() 공개 메소드

Render the callback response.
public renderCallbackResponse ( $writer )

renderResponse() 보호된 메소드

Renders the callback response by adding additional callback data and javascript actions in the header and page state if required.
protected renderResponse ( $writer )

setCallbackEventParameter() 공개 메소드

public setCallbackEventParameter ( $value )

setCallbackEventTarget() 공개 메소드

Registers a control to raise callback event in the current request.
public setCallbackEventTarget ( TControl $control )
$control Prado\Web\UI\TControl

trapCallbackErrorsExceptions() 보호된 메소드

Trap errors and exceptions to be handled by TCallbackErrorHandler.