@@ 33-43 (lines=11) @@ | ||
30 | /** |
|
31 | * @inheritdoc |
|
32 | */ |
|
33 | public function assignPage(Request &$request, Record $record = null) |
|
34 | { |
|
35 | $lastId = 0; |
|
36 | if ($record && $record->data) { |
|
37 | $lastId = (int)$record->data['id']; |
|
38 | } |
|
39 | if (!is_array($request->getParams)) { |
|
40 | $request->getParams = (array)$request->getParams; |
|
41 | } |
|
42 | $request->getParams[$this->keyAlternativePagination] = $lastId; |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * @inheritdoc |
@@ 41-51 (lines=11) @@ | ||
38 | /** |
|
39 | * @inheritdoc |
|
40 | */ |
|
41 | public function assignPage(Request &$request, Record $record = null) |
|
42 | { |
|
43 | $lastId = 0; |
|
44 | if ($record && $record->data) { |
|
45 | $lastId = (int)$record->data['id']; |
|
46 | } |
|
47 | if (!is_array($request->getParams)) { |
|
48 | $request->getParams = (array)$request->getParams; |
|
49 | } |
|
50 | $request->getParams[$this->keyAlternativePagination] = $lastId; |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * @inheritdoc |