PageHandler 클래스 참조

handles page navigation 더 자세히 ...

PageHandler에 대한 상속 다이어그램 :
Inheritance graph
PageHandler에 대한 협력 다이어그램:
Collaboration graph

모든 멤버 목록

Public 멤버 함수

 PageHandler ($total_count, $total_page, $cur_page, $page_count=10)
 constructor
 getNextPage ()
 request next page

Public 속성

 $total_count = 0
 number of total items
 $total_page = 0
 number of total pages
 $cur_page = 0
 current page number
 $page_count = 10
 number of page links displayed at one time
 $first_page = 1
 first page number
 $last_page = 1
 last page number
 $point = 0
 increments per getNextPage()

상세한 설명

handles page navigation

작성자:
zero (zero@nzeo.com)
버전:
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

PageHandler.class.php 파일의 12 번째 라인에서 정의되었습니다.


멤버 함수 문서화

PageHandler::getNextPage (  ) 

request next page

반환값:
next page number

PageHandler.class.php 파일의 51 번째 라인에서 정의되었습니다.

00051                                {
00052             $page = $this->first_page+$this->point++;
00053             if($this->point > $this->page_count || $page > $this->last_page) $page = 0;
00054             return $page;
00055         }

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

constructor

매개변수:
[in] $total_count number of total items
[in] $total_page number of total pages
[in] $cur_page current page number
[in] $page_count number of page links displayed at one time

PageHandler.class.php 파일의 29 번째 라인에서 정의되었습니다.

다음을 참조함 : $cur_page, $first_page, $last_page, $page_count, $total_count, $total_page.

00029                                                                                      {
00030             $this->total_count = $total_count;
00031             $this->total_page = $total_page;
00032             $this->cur_page = $cur_page;
00033             $this->page_count = $page_count;
00034             $this->point = 0;
00035 
00036             $first_page = $cur_page - (int)($page_count/2);
00037             if($first_page<1) $first_page = 1;
00038             $last_page = $total_page;
00039             if($last_page>$total_page) $last_page = $total_page;
00040 
00041             $this->first_page = $first_page;
00042             $this->last_page = $last_page;
00043 
00044             if($total_page < $this->page_count) $this->page_count = $total_page;
00045         }


멤버 데이타 문서화

PageHandler::$cur_page = 0

current page number

PageHandler.class.php 파일의 16 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PageHandler().

PageHandler::$first_page = 1

first page number

PageHandler.class.php 파일의 18 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PageHandler().

PageHandler::$last_page = 1

last page number

PageHandler.class.php 파일의 19 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PageHandler().

PageHandler::$page_count = 10

number of page links displayed at one time

PageHandler.class.php 파일의 17 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PageHandler().

PageHandler::$point = 0

increments per getNextPage()

PageHandler.class.php 파일의 20 번째 라인에서 정의되었습니다.

PageHandler::$total_count = 0

number of total items

PageHandler.class.php 파일의 14 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PageHandler().

PageHandler::$total_page = 0

number of total pages

PageHandler.class.php 파일의 15 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PageHandler().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.:

생성시간 : Wed Oct 28 23:00:36 2009, 프로젝트명 : XpressEngine, 생성자 :   doxygen 1.6.1