XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
PageHandler Class Reference
Inheritance diagram for PageHandler:
Handler

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...
 

Detailed Description

Author
NAVER (devel.nosp@m.oper.nosp@m.s@xpr.nosp@m.esse.nosp@m.ngine.nosp@m..com) handles page navigation
Version
0.1
Remarks
Getting total counts, number of pages, current page number, number of items per page, this class implements methods and contains variables for page navigation

Definition at line 13 of file PageHandler.class.php.

Constructor & Destructor Documentation

PageHandler::__construct (   $total_count,
  $total_page,
  $cur_page,
  $page_count = 10 
)

constructor

Parameters
int$total_countnumber of total items
int$total_pagenumber of total pages
int$cur_pagecurrent page number
int$page_countnumber of page links displayed at one time
Returns
void

Definition at line 33 of file PageHandler.class.php.

Member Function Documentation

PageHandler::getNextPage ( )

request next page

Returns
int next page number

Definition at line 71 of file PageHandler.class.php.

PageHandler::getPage (   $offset)

return number of page that added offset.

Parameters
int$offset
Returns
int

Definition at line 86 of file PageHandler.class.php.

Member Data Documentation

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.


The documentation for this class was generated from the following file: