• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/providerbase.php
  • Класс: BitrixSaleProviderBase
  • Вызов: ProviderBase::getBundleChildItemsByProductData
static function getBundleChildItemsByProductData($providerName, array $productData)
{
	if (array_key_exists("IBXSaleProductProvider", class_implements($providerName)))
	{
		$bundleChildList = $providerName::GetSetItems($productData['PRODUCT_ID'], BasketItem::TYPE_SET, array('BASKET_ID' => $productData['BASKET_ID']));
	}
	else
	{
		$bundleChildList = CSaleBasket::executeCallbackFunction(
			$productData['CALLBACK_FUNC'],
			$productData['MODULE'],
			$productData['PRODUCT_ID'],
			$productData['QUANTITY']
		);
	}

	if (is_array($bundleChildList))
	{
		$bundleChildList = reset($bundleChildList);
	}

	return $bundleChildList;
}