• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/basketpropertiesbase.php
  • Класс: BitrixSaleBasketPropertiesCollectionBase
  • Вызов: BasketPropertiesCollectionBase::getPropertyItemByValue
public function getPropertyItemByValue(array $value)
{
	if (!($propertyValue = static::bringingPropertyValue($value)))
	{
		return false;
	}

	/** @var BasketPropertyItemBase $propertyItem */
	foreach ($this->collection as $propertyItem)
	{
		$propertyItemValues = $propertyItem->getFieldValues();

		if (!($propertyItemValue = static::bringingPropertyValue($propertyItemValues)))
		{
			continue;
		}


		if ($propertyItemValue['CODE'] == $propertyValue['CODE'])
		{
			return $propertyItem;
		}
	}

	return false;
}