• Модуль: mobileapp
  • Путь к файлу: ~/bitrix/modules/mobileapp/lib/designer/configmap.php
  • Класс: BitrixMobileAppDesignerConfigMap
  • Вызов: ConfigMap::createMap
private function createMap()
{
	$mapFilePath = Application::getDocumentRoot() . "/bitrix/modules/mobileapp/maps/config.php";
	$file = new File($mapFilePath);
	if (!$file->isExists())
	{
		throw new SystemException("The map file  '" . $mapFilePath . "' doesn't exists!", 100);
	}

	$map = include($mapFilePath);

	if (!is_array($map))
	{
		throw new SystemException("The map file does exist but has some broken structure.", 101);
	}

	self::$configMap = $map;
	self::$configMap["groups"] = array();
	$groupTypes = array(ParameterType::GROUP, ParameterType::GROUP_BACKGROUND, ParameterType::GROUP_BACKGROUND_LIGHT);

	foreach ($map["types"] as $paramName => $intType)
	{
		if (in_array($intType, $groupTypes))
		{
			self::$configMap["groups"][] = $paramName;
		}

	}
}