Метод fetchRowsByUserId
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
51–77
~/bitrix/modulesim/lib/V2/Sync/SyncService.php
Исходный код
Сигнатура метода
private function fetchRowsByUserId(int $userId, DateTime $lastDate, ?int $lastId, int $limit): array
Возвращает:
array
Описание
Fetches log rows for one USER_ID with keyset pagination on (DATE_CREATE, ID). Strict ID > $lastId (not >=) avoids re-fetching the cursor row / infinite loop when rows share DATE_CREATE. $lastId === null = legacy first page (DATE_CREATE >=). Separate query per USER_ID to use the (USER_ID, DATE_CREATE) index.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
int
|
-
|
-
|
$lastDate
|
DateTime
|
-
|
-
|
$lastId
|
?int
|
-
|
-
|
$limit
|
int
|
-
|
-
|