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

The TCallback provides a basic callback handler that can be invoked from the client side by running the javascript code obtained from the {@link TBaseActiveCallbackControl::getJavascript ActiveControl.Javascript} property. The event {@link onCallback OnCallback} is raised when a callback is requested made. Example usage:
Click Me!
부터: 3.1
상속: extends Prado\Web\UI\TControl, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler, implements Prado\Web\UI\ActiveControls\IActiveControl
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, call this constructor.
getActiveControl ( ) : TBaseActiveCallbackControl
getClientSide ( ) : TCallbackClientSide
onCallback ( $param ) This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
raiseCallbackEvent ( $param ) Raises the callback event. This method is required by {@link ICallbackEventHandler ICallbackEventHandler} interface. If {@link getCausesValidation ActiveControl.CausesValidation} is true, it will invoke the page's {@link TPage::validate validate} method first.

메소드 상세

__construct() 공개 메소드

Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, call this constructor.
public __construct ( )

getActiveControl() 공개 메소드

public getActiveControl ( ) : TBaseActiveCallbackControl
리턴 TBaseActiveCallbackControl standard callback options.

getClientSide() 공개 메소드

public getClientSide ( ) : TCallbackClientSide
리턴 TCallbackClientSide client side request options.

onCallback() 공개 메소드

This method is invoked when a callback is requested. The method raises 'OnCallback' event to fire up the event handlers. If you override this method, be sure to call the parent implementation so that the event handler can be invoked.
public onCallback ( $param )

raiseCallbackEvent() 공개 메소드

It will raise {@link onCallback OnCallback} event. This method is mainly used by framework and control developers.
public raiseCallbackEvent ( $param )