• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/copy/implement/children/section.php
  • Класс: BitrixIblockCopyImplementChildrenSection
  • Вызов: Section::copy
public function copy($iblockId, $copiedIblockId): Result
{
	$sectionObject = new CIBlockSection;

	$sections = $this->getSections($iblockId, $copiedIblockId);
	$parentRatioIds = $this->getParentRatioIds($sections);
	$ratioIds = $this->addSections($sectionObject, $sections);
	$this->updateSections($sectionObject, $parentRatioIds, $ratioIds);
	$this->setRatios($iblockId, $ratioIds);

	return $this->result;
}