Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
class used to manage paging of lists or content More...
Public Member Functions | |
__construct ($ifp, $tot, $opts=null) | |
actual () | |
Returns the current page number. | |
limit () | |
Returns the key of the last item of the current page. | |
navigation () | |
Navigation links. | |
start () | |
Returns the key of the first item of the current page. | |
summary () | |
Pagination summary. | |
total () | |
Returns the total number of items. | |
Private Attributes | |
$_actual | |
current page number | |
$_end | |
last element index of the current page | |
$_last | |
last page number | |
$_npages | |
number of pages displayed next to the current page in the page navigation | |
$_range | |
elements for page | |
$_start | |
first element index of the current page | |
$_tot | |
total number of items | |
$_urlp | |
get parameter used to pass page number | |
$_view | |
a view instance |
class used to manage paging of lists or content
Definition at line 21 of file pagination.class.php.
pagination::__construct | ( | $ | ifp, |
$ | tot, | ||
$ | opts = null |
||
) |
Constructs a pagination instance
int | $ifp | items for page |
int | $tot | total number of items |
array | $opts | Asociative array of options:
|
Definition at line 80 of file pagination.class.php.
Returns the current page number.
Definition at line 104 of file pagination.class.php.
Returns the key of the last item of the current page.
Definition at line 139 of file pagination.class.php.
Navigation links.
public
Definition at line 171 of file pagination.class.php.
Returns the key of the first item of the current page.
Definition at line 116 of file pagination.class.php.
Pagination summary.
Returns something like 'items 5-20 of 200'
public
Definition at line 153 of file pagination.class.php.
Returns the total number of items.
Definition at line 128 of file pagination.class.php.
pagination::$_actual [private] |
current page number
Definition at line 41 of file pagination.class.php.
pagination::$_end [private] |
last element index of the current page
Definition at line 56 of file pagination.class.php.
pagination::$_last [private] |
last page number
Definition at line 46 of file pagination.class.php.
pagination::$_npages [private] |
number of pages displayed next to the current page in the page navigation
Definition at line 66 of file pagination.class.php.
pagination::$_range [private] |
elements for page
Definition at line 31 of file pagination.class.php.
pagination::$_start [private] |
first element index of the current page
Definition at line 51 of file pagination.class.php.
pagination::$_tot [private] |
total number of items
Definition at line 61 of file pagination.class.php.
pagination::$_urlp [private] |
get parameter used to pass page number
Definition at line 36 of file pagination.class.php.
pagination::$_view [private] |
a view instance
Definition at line 26 of file pagination.class.php.