| @@ 1079-1091 (lines=13) @@ | ||
| 1076 | } |
|
| 1077 | ||
| 1078 | // check the page variables |
|
| 1079 | if($page > $total_page) |
|
| 1080 | { |
|
| 1081 | // If requested page is bigger than total number of pages, return empty list |
|
| 1082 | ||
| 1083 | $buff = new BaseObject(); |
|
| 1084 | $buff->total_count = $total_count; |
|
| 1085 | $buff->total_page = $total_page; |
|
| 1086 | $buff->page = $page; |
|
| 1087 | $buff->data = array(); |
|
| 1088 | $buff->page_navigation = new PageHandler($total_count, $total_page, $page, $page_count); |
|
| 1089 | unset($this->param); |
|
| 1090 | return $buff; |
|
| 1091 | } |
|
| 1092 | $start_count = ($page - 1) * $list_count; |
|
| 1093 | ||
| 1094 | $query = $this->getSelectPageSql($queryObject, $with_values, $start_count, $list_count); |
|
| @@ 791-801 (lines=11) @@ | ||
| 788 | } |
|
| 789 | ||
| 790 | // check the page variables |
|
| 791 | if($page > $total_page) |
|
| 792 | { |
|
| 793 | // If requested page is bigger than total number of pages, return empty list |
|
| 794 | $buff = new BaseObject(); |
|
| 795 | $buff->total_count = $total_count; |
|
| 796 | $buff->total_page = $total_page; |
|
| 797 | $buff->page = $page; |
|
| 798 | $buff->data = array(); |
|
| 799 | $buff->page_navigation = new PageHandler($total_count, $total_page, $page, $page_count); |
|
| 800 | return $buff; |
|
| 801 | } |
|
| 802 | $start_count = ($page - 1) * $list_count; |
|
| 803 | ||
| 804 | $query = $this->getSelectPageSql($queryObject, $with_values, $start_count, $list_count); |
|