- Модуль: socialnetwork
- Путь к файлу: ~/bitrix/modules/socialnetwork/lib/component/loglist.php
- Класс: BitrixSocialnetworkComponentLogList
- Вызов: LogList::getEntryIdList
protected function getEntryIdList(&$result): array
{
global $NavNum;
$returnResult = [
'countAll' => 0
];
$processorInstance = $this->getProcessorInstance();
if (!$processorInstance)
{
return $returnResult;
}
if ($processorInstance->getListParamsKey('EMPTY_LIST') === 'Y')
{
$result['arLogTmpID'] = [];
return $returnResult;
}
$res = CSocNetLog::getList(
$processorInstance->getOrder(),
$processorInstance->getFilter(),
false,
$processorInstance->getNavParams(),
$processorInstance->getSelect(),
$processorInstance->getListParams()
);
if ($processorInstance->getFirstPage())
{
$result['NAV_STRING'] = '';
$result['PAGE_NAVNUM'] = $NavNum+1;
$result['PAGE_NAVCOUNT'] = 1000000;
}
else
{
$navComponentObject = false;
$result['NAV_STRING'] = $res->getPageNavStringEx($navComponentObject, Loc::getMessage('SONET_LOG_LIST_NAV'), '', false);
$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',
'pageNumber' => $res->NavPageNomer
]);
}
$returnResult['countAll'] = $res->selectedRowsCount();
return $returnResult;
}