- Bugfixes done linked to SearchRequest and Searchable features.
- Fixed a bug introduced into PdoObject exception on latest commit. - Corrected the open() close() enclosure of query condition.
This commit is contained in:
1 parent
f98cb2ded0
commit
84da4dbb7b
9 files changed
+111
-20
No files matched your search
@@ -10,6 +10,18 @@ trait SearchRequestPaginationTrait {
|
||||
|
||||
public int $pageCount = 0;
|
||||
|
||||
public int $limit = 25;
|
||||
|
||||
public function limit(): int
|
||||
{
|
||||
return $this->limit;
|
||||
}
|
||||
|
||||
public function offset(): int
|
||||
{
|
||||
return abs( ( $this->page - 1 ) * $this->limit() );
|
||||
}
|
||||
|
||||
public function pagination(int $page, int $itemCount) : void
|
||||
{
|
||||
$this->count = $itemCount;
|
||||
|
||||
Reference in new issue
Block a user