• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/integration/report/handler/base.php
  • Класс: BitrixVoximplantIntegrationReportHandlerBase
  • Вызов: Base::getFilterParameters
protected function getFilterParameters()
{
	static $filterParameters = [];

	$filter = $this->getFilter();
	$filterId = $filter->getFilterParameters()['FILTER_ID'];

	if (!$filterParameters[$filterId])
	{
		$options = new Options($filterId, $filter::getPresetsList());
		$fieldList = $filter::getFieldsList();
		$filterParameters[$filterId] = $options->getFilter($fieldList);
	}

	$currentFilterParameters = $filterParameters[$filterId];

	//converting U1 to 1 for dest_selector
	$userId = $currentFilterParameters['PORTAL_USER_ID'];
	if ($userId !== null && $userId !== '')
	{
		$prefix = mb_substr($userId, 0, 1);
		if($prefix === 'U')
		{
			$currentFilterParameters['PORTAL_USER_ID'] = mb_substr($userId, 1);
		}
	}

	return $currentFilterParameters;
}