bug fixes and updates

This commit is contained in:
2023-04-17 07:16:31 +10:00
parent d1c09ce74e
commit 7d9c982cf5
53 changed files with 3040 additions and 1701 deletions

View File

@@ -435,9 +435,10 @@ class Conductor
*
* @param integer $page The current page to return.
* @param integer $limit The limit of items to include or use default.
* @param integer $after Start the page count after this count of rows.
* @return void
*/
final public function paginate(int $page = 1, int $limit = -1)
final public function paginate(int $page = 1, int $limit = -1, int $after = 0)
{
// Limit
if ($limit < 1) {
@@ -451,7 +452,13 @@ class Conductor
if ($page < 1) {
$page = 1;
}
$this->query->offset(($page - 1) * $limit);
// After
if ($after < 0) {
$after = 0;
}
$this->query->offset((($page - 1) * $limit) + $after);
}
/**