/** * @param int $sectionId * @param array $targetSectionData * @return bool|string */ public static function generateNameForUserSectionLink($sectionId, array $targetSectionData) { $section = CIBlockSection::getList(array(), array('ID' => $sectionId, 'CHECK_PERMISSIONS' => 'N'), false, array('NAME'))->fetch(); if (empty($section['NAME'])) { return false; } $section['NAME'] = GetMessage('WD_SYMLINK_TEMPLATE_NAME', array('#NAME#' => $section['NAME'])); return CWebDavTools::regenerateNameIfNonUnique($section['NAME'], $targetSectionData['IBLOCK_ID'], $targetSectionData['SECTION_ID']); }