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
Показать файл Открыть проект

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

Метод Описание
__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 )