library/Dot/Paginator.php
Properties
Description
DotBoost Technologies Inc.
DotKernel Application Framework
Classes
Dot_Paginator
Properties
No
No
Description
Process the data used for pagination
Methods
__construct,
getCurrentItems,
getData,
getPages,
__construct(
Zend_Db_Select
$select,
int
$page
= 0,
int
$resultsPerPage
= 0,
)
:
Dot_Paginator
Description
Dot_Paginator constructor that sets the main parameters
If $page is 0 (zero), Zend_Paginator will not be called
Arguments
Name |
Type |
Description |
Default |
$select |
Zend_Db_Select |
|
|
$page |
int |
[optional] |
0 |
$resultsPerPage |
int |
[optional] |
0 |
Return value
Tags
Name |
Description |
access |
public |
getCurrentItems(
)
:
object
Description
Get current items to display on current page
Return value
Type |
Description |
object |
ArrayIterator |
Tags
Name |
Description |
access |
public |
getData(
)
:
array
Description
Return a multiple array with data and pages
Return value
Tags
Name |
Description |
access |
public |
getPages(
)
:
object
Description
Create the page object used in View - paginator method
Return value
Tags
Name |
Description |
access |
public |