• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitypropertyvaluecollection.php
  • Класс: BitrixSaleEntityPropertyValueCollection
  • Вызов: EntityPropertyValueCollection::getPropertiesByGroupId
public function getPropertiesByGroupId($groupId)
{
	$result = [];

	$groups = $this->getGroups();

	/** @var EntityPropertyValue $propertyValue */
	foreach ($this->collection as $propertyValue)
	{
		$property = $propertyValue->getPropertyObject();
		if (!$property)
		{
			continue;
		}

		$propertyGroupId = (int)$property->getGroupId();
		if (!isset($groups[$propertyGroupId]))
		{
			$propertyGroupId = 0;
		}

		if ($propertyGroupId === (int)$groupId)
		{
			$result[] = $propertyValue;
		}
	}

	return $result;
}