wsFramework
[ class tree: wsFramework ] [ index: wsFramework ] [ all elements ]

Class: wsPager

Source Location: /utils/pager/wsPager.class.php

Class Overview


This pager class has simillar interface to PropelPager class


Author(s):

Methods



Class Details

[line 11]
This pager class has simillar interface to PropelPager class

This pager class has simillar interface to PropelPager class




Tags:

author:  Karol Szponder <karol.szponder@wondersoftware.pl>
see:  PropelPager


[ Top ]


Class Methods


constructor __construct [line 48]

wsPager __construct( int $totalRecordsCount, [int $page = 1], [int $recordsPerPage = 10])

Default constructor

Default constructor




Tags:

access:  public


Parameters:

int   $totalRecordsCount   Number of all records
int   $page   Current page number
int   $recordsPerPage   Records per page

[ Top ]

method getLastPage [line 159]

int getLastPage( )

Gets last page numer

Gets last page numer




Tags:

access:  public


[ Top ]

method getNextLinks [line 138]

array getNextLinks( [int $nLinks = null])

Gets nects links

Gets nects links




Tags:

access:  public


Parameters:

int   $nLinks   Number of next links

[ Top ]

method getPage [line 59]

int getPage( )

Gets current page

Gets current page




Tags:

access:  public


[ Top ]

method getPrev [line 169]

int getPrev( )

Gets previous page number

Gets previous page number




Tags:

access:  public


[ Top ]

method getPrevLinks [line 115]

array getPrevLinks( [int $bLinks = null])

Gets previous links

Gets previous links




Tags:

access:  public


Parameters:

int   $bLinks   Number of previous links

[ Top ]

method getRecordsPerPage [line 77]

int getRecordsPerPage( )

Gets recoreds per page

Gets recoreds per page




Tags:

access:  public


[ Top ]

method getTotalPages [line 104]

int getTotalPages( )

Gets number of all pages

Gets number of all pages




Tags:

access:  public


[ Top ]

method getTotalRecordCount [line 95]

int getTotalRecordCount( )

Gets total records count

Gets total records count




Tags:

access:  public


[ Top ]

method setPage [line 68]

void setPage( int $page)

Sets current page

Sets current page




Tags:

access:  public


Parameters:

int   $page   Page number

[ Top ]

method setRowsPerPage [line 86]

void setRowsPerPage( $recordsPerPage, int $recordsParePage)

Sets records per page

Sets records per page




Tags:

access:  public


Parameters:

int   $recordsParePage   Records per page
   $recordsPerPage  

[ Top ]


Documentation generated on Tue, 11 Jan 2011 20:20:31 +0100 by phpDocumentor 1.4.3

©2011 wondersoftware.pl