PHP Classes & Interfaces


Name: PageNavigator

Date: Apr-24-2017
PHP version: 5.3.3
Type: User-defined

class PageNavigator

Public Methods

public __construct ( $pagename, $totalrecords, $recordsperpage, $recordoffset, $maxpagesshown = 4, $params = "" ) user-defined

public setInactiveSpanName ( $name ) user-defined

public getInactiveSpanName ( ) user-defined

public setPageDisplayDivName ( $name ) user-defined

public getPageDisplayDivName ( ) user-defined

public setDivWrapperName ( $name ) user-defined

public getDivWrapperName ( ) user-defined

public setFirstParamName ( $name ) user-defined

public getFirstParamName ( ) user-defined

public getNavigator ( ) user-defined

Private Methods

private createLink ( $offset, $strdisplay ) user-defined

private getPageNumberDisplay ( ) user-defined

private setTotalPages ( $totalrecords, $recordsperpage ) user-defined

private checkRecordoffset ( $recordoffset, $recordsperpage ) user-defined

private calculateCurrentPage ( $recordoffset, $recordsperpage ) user-defined

private createInactiveSpans ( ) user-defined

private calculateCurrentStartPage ( ) user-defined

private calculateCurrentEndPage ( ) user-defined

Private Data Members

private pagename

private totalpages

private recordsperpage

private maxpagesshown

private currentstartpage

private currentendpage

private currentpage

private spannextinactive

private spanpreviousinactive

private firstinactivespan

private lastinactivespan

private firstparamname = "offset"

private params

private inactivespanname = "inactive"

private pagedisplaydivname = "totalpagesdisplay"

private divwrappername = "navigator"

private strfirst = "|<"

private strnext = "Next"

private strprevious = "Prev"

private strlast = ">|"

private errorstring