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

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

		$results[] = $propertyValue;
	}

	return $results;
}