• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/discount/runtimecache/discountcache.php
  • Класс: BitrixSaleDiscountRuntimeCacheDiscountCache
  • Вызов: DiscountCache::getDiscountModules
public function getDiscountModules(array $discountIds)
{
	if(empty($discountIds))
	{
		return array();
	}

	Collection::normalizeArrayValuesByInt($discountIds);

	$discountIds = array_combine($discountIds, $discountIds);
	$needToLoad = array_diff($discountIds, array_keys($this->discountModules));

	foreach(DiscountModuleTable::getByDiscount($needToLoad) as $discountId => $modules)
	{
		$this->discountModules[$discountId] = $modules;
	}

	return array_intersect_key($this->discountModules, $discountIds);
}