48 $propertyId = (int)$propertyId;
54 $valuesIterator = \CIBlockElement::getPropertyValues(
$iblockId,
$filter,
false,
array(
'ID' => $propertyId));
55 while ($value = $valuesIterator->fetch())
57 $productId = (int)$value[$propertyId];
58 $offerId = (int)$value[
'IBLOCK_ELEMENT_ID'];
59 if (!isset(
$result[$productId]))
61 $result[$productId][$offerId] = $offerId;
63 unset($value, $valuesIterator);