• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/PropertyValue/PropertyValueCollection.php
  • Класс: BitrixCatalogv2PropertyValuePropertyValueCollection
  • Вызов: PropertyValueCollection::setValues
public function setValues($values): self
{
	$values = $this->prepareValues($values);
	$values = $this->prepareValuesIds($values);

	if ($this->isPropertyMultiple())
	{
		$this->removeUnchangedItems($values);
	}

	foreach ($values as $fields)
	{
		$this->setValue($fields);
	}

	return $this;
}