- Модуль: mobile
- Путь к файлу: ~/bitrix/modules/mobile/lib/component/loglist.php
- Класс: BitrixMobileComponentLogList
- Вызов: LogList::getEntryIdList
protected function getEntryIdList(&$result): array
{
$params = $this->arParams;
$returnResult = [
'countAll' => 0
];
$processorInstance = $this->getProcessorInstance();
if (!$processorInstance)
{
return $returnResult;
}
$res = CSocNetLog::getList(
$processorInstance->getOrder(),
$processorInstance->getFilter(),
false,
$processorInstance->getNavParams(),
$processorInstance->getSelect(),
$processorInstance->getListParams()
);
if (
$params['LOG_ID'] <= 0
&& $params['NEW_LOG_ID'] <= 0
)
{
if ($processorInstance->getFirstPage())
{
$result['PAGE_NAVNUM'] = $GLOBALS['NavNum'] + 1;
$result['PAGE_NAVCOUNT'] = 1000000;
}
else
{
$result['PAGE_NUMBER'] = $res->NavPageNomer;
$result['PAGE_NAVNUM'] = $res->NavNum;
$result['PAGE_NAVCOUNT'] = $res->NavPageCount;
}
}
$cnt = 0;
while ($eventFields = $res->getNext())
{
$this->processEvent($result, $cnt, $eventFields, [
'type' => 'main',
]);
}
$returnResult['countAll'] = $res->selectedRowsCount();
return $returnResult;
}