• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/service/batchable/client.php
  • Класс: BitrixSaleExchangeIntegrationServiceBatchableClient
  • Вызов: Client::getUserCollectionByTypeId
protected function getUserCollectionByTypeId(IntegrationServiceUserContainerCollection $collection, $typeId)
{
	$clients = new IntegrationServiceUserContainerCollection();
	/** @var IntegrationServiceUserContainerItem $item */
	foreach ($collection as $item)
	{
		if($item->getEntity()->getType() == $typeId)
		{
			$clients->addItem($item);
		}
	}
	return $clients;
}