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

	$queryObject = CIBlockSection::getList([], ["IBLOCK_ID" => $iblockId, "CHECK_PERMISSIONS" => "N"], false);
	while ($section = $queryObject->fetch())
	{
		$section["IBLOCK_ID"] = $copiedIblockId;
		$sections[] = $section;
	}

	return $sections;
}