

Public 멤버 함수 | |
| PageHandler ($total_count, $total_page, $cur_page, $page_count=10) | |
| constructor | |
| getNextPage () | |
| 다음 페이지 요청 | |
Public 속성 | |
| $total_count = 0 | |
| 전체 item의 갯수 | |
| $total_page = 0 | |
| 전체 페이지 수 | |
| $cur_page = 0 | |
| 현 페이지 | |
| $page_count = 10 | |
| 한번에 보일 페이지의 수 | |
| $first_page = 1 | |
| 첫 페이지 | |
| $last_page = 1 | |
| 마지막 페이지 | |
| $point = 0 | |
| getNextPage() 호출시 증가하는 값 | |
PageHandler.class.php 파일의 12 번째 라인에서 정의되었습니다.
| PageHandler::getNextPage | ( | ) |
다음 페이지 요청
PageHandler.class.php 파일의 46 번째 라인에서 정의되었습니다.
00046 { 00047 $page = $this->first_page+$this->point++; 00048 if($this->point > $this->page_count || $page > $this->last_page) $page = 0; 00049 return $page; 00050 }
| PageHandler::PageHandler | ( | $ | total_count, | |
| $ | total_page, | |||
| $ | cur_page, | |||
| $ | page_count = 10 | |||
| ) |
constructor
PageHandler.class.php 파일의 25 번째 라인에서 정의되었습니다.
다음을 참조함 : $cur_page, $first_page, $last_page, $page_count, $total_count, $total_page.
00025 { 00026 $this->total_count = $total_count; 00027 $this->total_page = $total_page; 00028 $this->cur_page = $cur_page; 00029 $this->page_count = $page_count; 00030 $this->point = 0; 00031 00032 $first_page = $cur_page - (int)($page_count/2); 00033 if($first_page<1) $first_page = 1; 00034 $last_page = $total_page; 00035 if($last_page>$total_page) $last_page = $total_page; 00036 00037 $this->first_page = $first_page; 00038 $this->last_page = $last_page; 00039 00040 if($total_page < $this->page_count) $this->page_count = $total_page; 00041 }
| PageHandler::$cur_page = 0 |
| PageHandler::$first_page = 1 |
| PageHandler::$last_page = 1 |
| PageHandler::$page_count = 10 |
| PageHandler::$point = 0 |
| PageHandler::$total_count = 0 |
| PageHandler::$total_page = 0 |
1.5.8