• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/map.php
  • Класс: BitrixSaleTradingPlatformVkMap
  • Вызов: Map::getMappedSections
static function getMappedSections($exportId, $sectionId = NULL)
{
	$result = array();
	$catEntId = self::getSectionsEntityId($exportId);
	
	$filter = array('=ENTITY_ID' => $catEntId);
	if ($sectionId)
		$filter['=VALUE_INTERNAL'] = $sectionId;
	
//		todo: we can cached map. Clear cache if set setting in section
	$catRes = MapTable::getList(array(
		'filter' => $filter,
	));
	
	while ($product = $catRes->fetch())
		$result[$product["VALUE_INTERNAL"]] = array(
			"BX_ID" => $product["VALUE_INTERNAL"],
			"VK_ID" => $product["VALUE_EXTERNAL"],
			"PARAMS" => $product["PARAMS"],
		);
	
	return $result;
}