• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/controller/propertyvalue.php
  • Класс: BitrixSaleControllerPropertyValue
  • Вызов: PropertyValue::getItem
protected function getItem(SalePropertyValue $propertyValue, array $fields=[])
{
	return current(
		array_filter(
			$propertyValue
				->getCollection()
				->toArray(),
			function ($item) use ($propertyValue){
				if($propertyValue->getPropertyId() == $item['ORDER_PROPS_ID'])
				{
					return $item;
				}
			}
		)
	);
}