• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/controller/livefeed.php
  • Класс: BitrixSocialnetworkControllerLivefeed
  • Вызов: Livefeed::getNextPageAction
public function getNextPageAction(array $params = []): BitrixMainEngineResponseComponent
{
	$componentParameters = $this->getUnsignedParameters();
	if (!is_array($componentParameters))
	{
		$componentParameters = [];
	}

	$requestParameters = [
		'TARGET' => 'page',
		'PAGE_NUMBER' => (isset($params['PAGE_NUMBER']) && (int)$params['PAGE_NUMBER'] >= 1 ? (int)$params['PAGE_NUMBER'] : 1),
		'LAST_LOG_TIMESTAMP' => (isset($params['LAST_LOG_TIMESTAMP']) && (int)$params['LAST_LOG_TIMESTAMP'] > 0 ? (int)$params['LAST_LOG_TIMESTAMP'] : 0),
		'PREV_PAGE_LOG_ID' => ($params['PREV_PAGE_LOG_ID'] ?? ''),
		'useBXMainFilter' =>  ($params['useBXMainFilter'] ?? 'N'),
		'siteTemplateId' =>  ($params['siteTemplateId'] ?? 'bitrix24'),
		'preset_filter_top_id' =>  ($params['preset_filter_top_id'] ?? ''),
		'preset_filter_id' =>  ($params['preset_filter_id'] ?? '')
	];

	return new BitrixMainEngineResponseComponent('bitrix:socialnetwork.log.ex', '', array_merge($componentParameters, $requestParameters), [], $this->getComponentReturnWhiteList());
}