• Модуль: photogallery
  • Путь к файлу: ~/bitrix/modules/photogallery/lib/copy/integration/group.php
  • Класс: BitrixPhotogalleryCopyIntegrationGroup
  • Вызов: Group::getParentSectionId
private function getParentSectionId($groupId, $sectionName)
{
	$parentSectionId = 0;

	$res = CIBlockSection::getList([], ["NAME" => $sectionName, "SOCNET_GROUP_ID" => $groupId], false, ["ID"]);
	if ($section = $res->fetch())
	{
		$parentSectionId = $section["ID"];
	}

	return $parentSectionId;
}