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

When a page change is requested, TActivePager raises a callback instead of the traditional postback. The {@link onCallback OnCallback} event is raised during a callback request and it is raise after the {@link onPageIndexChanged OnPageIndexChanged} event.
부터: 3.1.2
저자: "gevik" (forum contributor) and Christophe Boulain ([email protected])
상속: extends Prado\Web\UI\WebControls\TPager, implements Prado\Web\UI\ActiveControls\IActiveControl, implements Prado\Web\UI\ActiveControls\ICallbackEventHandler
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__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, by calling this constructor.
getActiveControl ( ) : TBaseActiveControl
getClientSide ( ) : TCallbackClientSide
handleCallback ( mixed $sender, TCallbackEventParameter $param ) Event handler to the OnCallback active buttons or active dropdownlist.
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} interface.
render ( $writer )

보호된 메소드들

메소드 설명
buildListPager ( ) Builds a dropdown list pager Override parent implementation to build Active dropdown lists.
createPagerButton ( $buttonType, $enabled, $text, $commandName, $commandParameter ) : mixed Creates a pager button.

메소드 상세

__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, by calling this constructor.
public __construct ( )

buildListPager() 보호된 메소드

Builds a dropdown list pager Override parent implementation to build Active dropdown lists.
protected buildListPager ( )

createPagerButton() 보호된 메소드

Override parent implementation to create, depending on the button type, a TActiveLinkButton, a TActiveButton or a TActiveImageButton may be created.
protected createPagerButton ( $buttonType, $enabled, $text, $commandName, $commandParameter ) : mixed
리턴 mixed the button instance

getActiveControl() 공개 메소드

public getActiveControl ( ) : TBaseActiveControl
리턴 TBaseActiveControl standard active control options.

getClientSide() 공개 메소드

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

handleCallback() 공개 메소드

This handler will raise the {@link onCallback OnCallback} event
public handleCallback ( mixed $sender, TCallbackEventParameter $param )
$sender mixed
$param TCallbackEventParameter

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() 공개 메소드

This method is mainly used by framework and control developers.
public raiseCallbackEvent ( $param )

render() 공개 메소드

public render ( $writer )