related to #1465 added beginning of pagination

This commit is contained in:
Matthieu Leproux
2021-09-16 14:07:10 +02:00
committed by plegall
parent 6860c59453
commit 84dbdbabe8
3 changed files with 52 additions and 30 deletions
+10 -1
View File
@@ -969,6 +969,15 @@ SELECT
/** */
}
return [$result, $param];
/**
* Pagination Time
*/
$max_page = ceil(count($result)/100);
$result = array_reverse($result, true);
$result = array_slice($result, $param['pageNumber']*100, 100);
return [$result, $param, $max_page];
}
?>