Property | Type | Description | |
---|---|---|---|
$currentPage | * current page number, start from 1 | ||
$dataArray | * data array | ||
$perPage | * size of per page | ||
$totalPages | * size of pages |
Method | Description | |
---|---|---|
__construct ( array $dataArray, $page = 1, $pagenum = 10 ) | ||
calculate ( ) | ||
getNextPage ( ) | ||
getOffset ( ) | ||
getPreviousPage ( ) | ||
hasNextPage ( ) | ||
hasPreviousPage ( ) | ||
items ( ) | ||
next ( ) | ||
pages ( ) | ||
previous ( ) | ||
setPage ( integer $num ) | ||
setPerPage ( integer $num ) |
public __construct ( array $dataArray, $page = 1, $pagenum = 10 ) | ||
$dataArray | array |