PHP Class Prado\Web\UI\WebControls\TDataGridPagerStyle

TDataGridPagerStyle specifies the styles available for a datagrid pager.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends TPanelStyle
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
copyFrom ( $style ) Copies the fields in a new style to this style.
getButtonType ( ) : TDataGridPagerButtonType
getFirstPageText ( ) : string
getLastPageText ( ) : string
getMode ( ) : TDataGridPagerMode
getNextPageText ( ) : string
getPageButtonCount ( ) : integer
getPosition ( ) : TDataGridPagerPosition
getPrevPageText ( ) : string
getVisible ( ) : boolean
mergeWith ( $style ) Merges the style with a new one.
reset ( ) Resets the style to the original empty state.
setButtonType ( $value )
setFirstPageText ( $value )
setLastPageText ( $value )
setMode ( $value )
setNextPageText ( $value )
setPageButtonCount ( $value )
setPosition ( $value )
setPrevPageText ( $value )
setVisible ( $value )

Méthodes protégées

Méthode Description
_getZappableSleepProps ( &$exprops ) Returns an array with the names of all variables of this object that should NOT be serialized because their value is the default one or useless to be cached for the next page loads.

Method Details

_getZappableSleepProps() protected méthode

Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first.
protected _getZappableSleepProps ( &$exprops )

copyFrom() public méthode

If a style field is set in the new style, the corresponding field in this style will be overwritten.
public copyFrom ( $style )

getButtonType() public méthode

public getButtonType ( ) : TDataGridPagerButtonType
Résultat TDataGridPagerButtonType the type of command button. Defaults to TDataGridPagerButtonType::LinkButton.

getFirstPageText() public méthode

public getFirstPageText ( ) : string
Résultat string text for the first page button. Defaults to '<<'.

getLastPageText() public méthode

public getLastPageText ( ) : string
Résultat string text for the last page button. Defaults to '>>'.

getMode() public méthode

public getMode ( ) : TDataGridPagerMode
Résultat TDataGridPagerMode pager mode. Defaults to TDataGridPagerMode::NextPrev.

getNextPageText() public méthode

public getNextPageText ( ) : string
Résultat string text for the next page button. Defaults to '>'.

getPageButtonCount() public méthode

public getPageButtonCount ( ) : integer
Résultat integer maximum number of pager buttons to be displayed. Defaults to 10.

getPosition() public méthode

public getPosition ( ) : TDataGridPagerPosition
Résultat TDataGridPagerPosition where the pager is to be displayed. Defaults to TDataGridPagerPosition::Bottom.

getPrevPageText() public méthode

public getPrevPageText ( ) : string
Résultat string text for the previous page button. Defaults to '<'.

getVisible() public méthode

public getVisible ( ) : boolean
Résultat boolean whether the pager is visible. Defaults to true.

mergeWith() public méthode

If a style field is not set in this style, it will be overwritten by the new one.
public mergeWith ( $style )

reset() public méthode

Resets the style to the original empty state.
public reset ( )

setButtonType() public méthode

public setButtonType ( $value )

setFirstPageText() public méthode

public setFirstPageText ( $value )

setLastPageText() public méthode

public setLastPageText ( $value )

setMode() public méthode

public setMode ( $value )

setNextPageText() public méthode

public setNextPageText ( $value )

setPageButtonCount() public méthode

public setPageButtonCount ( $value )

setPosition() public méthode

public setPosition ( $value )

setPrevPageText() public méthode

public setPrevPageText ( $value )

setVisible() public méthode

public setVisible ( $value )