• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/service/batchable/client.php
  • Класс: BitrixSaleExchangeIntegrationServiceBatchableClient
  • Вызов: Client::loadUserCollection
protected function loadUserCollection($indexes)
{
	$clients = new IntegrationServiceUserContainerCollection();
	foreach ($indexes as $index)
	{
		$order = Order::load($index);

		$typeName = IntegrationServiceUserEntityBase::resolveNamePersonDomain($order->getPersonTypeId());
		$clients->addItem(
			IntegrationServiceUserContainerItem::create(
				IntegrationServiceUserFactory::create(
					IntegrationServiceUserEntityType::resolveId($typeName))
					->load($order))->setInternalIndex($index));
	}
	return $clients;
}