• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/classes/general/report.php
  • Класс: CReport
  • Вызов: CReport::setViewParams
static function setViewParams($id, $templateName, $strParams)
{
	global $USER;

	$result = false;
	if (empty($templateName)) $templateName = '.default';
	if (
		get_class($USER) === 'CUser'
		&& $id !== null && intval($id) >= 0
		&& !empty($templateName)
		&& !empty($strParams)
	)
	{
		$user_id = $USER->GetId();
		if ($user_id != null)
		{
			$result = CUserOptions::SetOption(
				'report', 'view_params_'.$id.'_'.$templateName, $_SERVER['QUERY_STRING'], false, $user_id
			);
		}
	}

	return $result;
}