• Модуль: mobile
  • Путь к файлу: ~/bitrix/modules/mobile/lib/component/loglist/param.php
  • Класс: BitrixMobileComponentLogListParam
  • Вызов: Param::prepareBehaviourParams
public function prepareBehaviourParams(&$componentParams)
{
	$request = $this->getRequest();

	$componentParams['EMPTY_PAGE'] = ($request->get('empty') === 'Y' ? 'Y' : 'N');

	if ($componentParams['EMPTY_PAGE'] === 'Y')
	{
		return;
	}

	if (
		$componentParams['IS_CRM'] === "Y"
		&& ($componentParams["CRM_ENTITY_TYPE"] <> '')
	)
	{
		$componentParams['SET_LOG_COUNTER'] = $componentParams['SET_LOG_PAGE_CACHE'] = 'N';
	}

	if (
		$componentParams['LOG_ID'] <= 0
		&& $componentParams['NEW_LOG_ID'] <= 0
		&& in_array($componentParams['FILTER'], [ 'favorites', 'my', 'important', 'work', 'bizproc', 'blog' ])
	)
	{
		$componentParams['SET_LOG_COUNTER'] = 'N';
		$componentParams['SET_LOG_PAGE_CACHE'] = 'N';
		$componentParams['USE_FOLLOW'] = 'N';
	}

	if ($componentParams['GROUP_ID'] > 0)
	{
		$componentParams['SET_LOG_PAGE_CACHE'] = 'Y';
		$componentParams['USE_FOLLOW'] = 'N';
		$componentParams['SET_LOG_COUNTER'] = 'N';
	}
	elseif (
		$componentParams['IS_CRM'] === 'Y'
		&& $componentParams['SET_LOG_COUNTER'] !== 'N'
	)
	{
	}
	elseif ($componentParams['FIND'] <> '')
	{
		$componentParams['SET_LOG_COUNTER'] = 'N';
		$componentParams['SET_LOG_PAGE_CACHE'] = 'N';
		$componentParams['USE_FOLLOW'] = 'N';
	}

	if ((int)$request->get('pagesize') > 0)
	{
		$componentParams['SET_LOG_PAGE_CACHE'] = 'N';
	}
}