• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/basket.php
  • Класс: BitrixCatalogProductBasket
  • Вызов: Basket::getPropertyIndex
static function getPropertyIndex($code, array $propertyList = array())
{
	$propertyIndex = null;
	if (empty($propertyList))
		return $propertyIndex;

	foreach ($propertyList as $index => $propertyData)
	{
		if (!empty($propertyData['CODE']) && $code == $propertyData['CODE'])
		{
			$propertyIndex = $index;
			break;
		}
	}
	unset($index, $propertyData);

	return $propertyIndex;
}