• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/comp_pricetools.php
  • Класс: CIBlockPriceTools
  • Вызов: CIBlockPriceTools::getFillProductProperties
static function getFillProductProperties($productProps)
{
	$result = array();
	if (!empty($productProps) && is_array($productProps))
	{
		foreach ($productProps as $propID => $propInfo)
		{
			if (isset($propInfo['SET']) && $propInfo['SET'])
			{
				$result[$propID] = array(
					'ID' => $propInfo['SELECTED'],
					'VALUE' => $propInfo['VALUES'][$propInfo['SELECTED']]
				);
			}
		}
	}
	return $result;
}