• Модуль: xdimport
  • Путь к файлу: ~/bitrix/modules/xdimport/lib/internals/utils.php
  • Класс: BitrixXDImportInternalsUtils
  • Вызов: Utils::getParamsFromString
static function getParamsFromString($str)
{
	$params = unserialize($str, [ 'allowed_classes' => false ]);

	if (
		!is_array($params)
		&& !empty($str)
	)
	{
		$tmp = explode("&", $str);
		if (is_array($tmp) && count($tmp) > 0)
		{
			$params = array();
			foreach($tmp as $pair)
			{
				list ($key, $value) = explode("=", $pair);
				$params[$key] = $value;
			}
		}
	}

	return $params;
}