• Модуль: mobile
  • Путь к файлу: ~/bitrix/modules/mobile/lib/component/loglist/processor.php
  • Класс: BitrixMobileComponentLogListProcessor
  • Вызов: Processor::processEventsList
public function processEventsList(&$result, $type = 'main')
{
	$params = $this->getComponent()->arParams;
	$logPageProcessorInstance = $this->getComponent()->getLogPageProcessorInstance();

	if (!$logPageProcessorInstance)
	{
		return;
	}

	$prevPageLogIdList = $logPageProcessorInstance->getPrevPageLogIdList();

	$eventsList = $this->getEventsList($type);

	foreach ($eventsList as $key => $eventFields)
	{
		if (
			!is_array($prevPageLogIdList)
			|| !in_array($eventFields['ID'], $prevPageLogIdList)
		)
		{
			$eventsList[$key]['EVENT_ID_FULLSET'] = CSocNetLogTools::findFullSetEventIDByEventID($eventFields['EVENT_ID']);
		}
		else
		{
			unset($eventsList[$key]);
		}
	}

	if ($type === 'main')
	{
		$result['Events'] = $eventsList;
	}
	elseif ($type === 'pinned')
	{
		$result['pinnedEvents'] = $eventsList;
	}
}