• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblockoffers.php
  • Класс: CAllIBlockOffersTmp
  • Вызов: CAllIBlockOffersTmp::Add
static function Add($intProductIBlockID,$intOffersIBlockID)
{
	global $DB;

	$intProductIBlockID = (int)$intProductIBlockID;
	$intOffersIBlockID = (int)$intOffersIBlockID;
	if ($intProductIBlockID <= 0 || $intOffersIBlockID <= 0)
		return false;
	$arFields = array(
		'PRODUCT_IBLOCK_ID' => $intProductIBlockID,
		'OFFERS_IBLOCK_ID' => $intOffersIBlockID,
	);
	return $DB->Add("b_iblock_offers_tmp", $arFields);
}