• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Property/PropertyCollection.php
  • Класс: BitrixCatalogv2PropertyPropertyCollection
  • Вызов: PropertyCollection::setValues
public function setValues(array $propertyValues): self
{
	foreach ($propertyValues as $index => $values)
	{
		$property = null;

		if (is_numeric($index))
		{
			$property = $this->findById((int)$index);
		}

		if (!$property)
		{
			$property = $this->findByCode($index);
		}

		if ($property)
		{
			$property->getPropertyValueCollection()->setValues($values);
		}
	}

	return $this;
}