handles page navigation 더 자세히 ...


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
PageHandler.class.php 파일의 12 번째 라인에서 정의되었습니다.
| PageHandler::getNextPage | ( | ) |
request next page
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 |
| PageHandler::$first_page = 1 |
| PageHandler::$last_page = 1 |
| 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 |
| PageHandler::$total_page = 0 |
1.6.1