• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/copy/stepper/entity.php
  • Класс: BitrixIblockCopyStepperEntity
  • Вызов: Entity::getContainerCollection
protected function getContainerCollection($elementIds, array $sectionsRatio, array $enumRatio, $targetIblockId = 0)
{
	$containerCollection = new ContainerCollection();

	foreach ($elementIds as $elementId)
	{
		$container = new Container($elementId);
		$dictionary = new Dictionary(
			[
				"targetIblockId" => $targetIblockId,
				"enumRatio" => $enumRatio,
				"sectionsRatio" => $sectionsRatio
			]
		);
		$container->setDictionary($dictionary);

		$containerCollection[] = $container;
	}

	return $containerCollection;
}