mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-23 13:19:56 +09:00
Issue 1597: XML query에서 page 값
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10347 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d8ce5b5a4a
commit
558df676d9
5 changed files with 61 additions and 15 deletions
|
|
@ -517,7 +517,16 @@
|
|||
$total_page = 1;
|
||||
|
||||
// check the page variables
|
||||
if ($page > $total_page) $page = $total_page;
|
||||
if ($page > $total_page) {
|
||||
// If requested page is bigger than total number of pages, return empty list
|
||||
|
||||
$buff = new Object ();
|
||||
$buff->total_count = $total_count;
|
||||
$buff->total_page = $total_page;
|
||||
$buff->page = $page;
|
||||
$buff->data = array();
|
||||
$buff->page_navigation = new PageHandler($total_count, $total_page, $page, $page_count);
|
||||
}
|
||||
$start_count = ($page - 1) * $list_count;
|
||||
|
||||
$this->_prepare($this->getSelectPageSql($queryObject, true, $start_count, $list_count));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue