Public Member Functions | |
__construct ($total_count, $total_page, $cur_page, $page_count=10) | |
getNextPage () | |
getPage ($offset) | |
Public Attributes | |
$total_count = 0 | |
number of total items More... | |
$total_page = 0 | |
number of total pages More... | |
$cur_page = 0 | |
current page number More... | |
$page_count = 10 | |
number of page links displayed at one time More... | |
$first_page = 1 | |
first page number More... | |
$last_page = 1 | |
last page number More... | |
$point = 0 | |
increments per getNextPage() More... | |
Definition at line 13 of file PageHandler.class.php.
PageHandler::__construct | ( | $total_count, | |
$total_page, | |||
$cur_page, | |||
$page_count = 10 |
|||
) |
constructor
int | $total_count | number of total items |
int | $total_page | number of total pages |
int | $cur_page | current page number |
int | $page_count | number of page links displayed at one time |
Definition at line 33 of file PageHandler.class.php.
PageHandler::getNextPage | ( | ) |
PageHandler::getPage | ( | $offset | ) |
return number of page that added offset.
int | $offset |
Definition at line 86 of file PageHandler.class.php.
PageHandler::$cur_page = 0 |
current page number
Definition at line 18 of file PageHandler.class.php.
PageHandler::$first_page = 1 |
first page number
Definition at line 20 of file PageHandler.class.php.
PageHandler::$last_page = 1 |
last page number
Definition at line 21 of file PageHandler.class.php.
PageHandler::$page_count = 10 |
number of page links displayed at one time
Definition at line 19 of file PageHandler.class.php.
PageHandler::$point = 0 |
increments per getNextPage()
Definition at line 22 of file PageHandler.class.php.
PageHandler::$total_count = 0 |
number of total items
Definition at line 16 of file PageHandler.class.php.
PageHandler::$total_page = 0 |
number of total pages
Definition at line 17 of file PageHandler.class.php.