コード例 #1
0
ファイル: symlinkhelper.php プロジェクト: DarneoStudio/bitrix
 /**
  * @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']);
 }