• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/classes/general/event_calendar.php
  • Класс: CECCalendar
  • Вызов: CECCalendar::GetExportParams
static function GetExportParams($iblockId, $calendarId, $ownerType = false, $ownerId = false)
{
	if ($ownerType != 'USER' && $ownerType != 'GROUP')
		$ownerType = '';
	$key = "UF_".$ownerType."_CAL_EXP";
	$ent_id = "IBLOCK_".$iblockId."_SECTION";

	$arUF = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields($ent_id, $calendarId);
	if (isset($arUF[$key]) && $arUF[$key]['VALUE'] <> '')
		return array('ALLOW' => true, 'SET' => $arUF[$key]['VALUE'], 'LINK' => CECCalendar::GetExportLink($calendarId, $ownerType, $ownerId, $iblockId));
	else
		return array('ALLOW' => false, 'SET' => false, 'LINK' => false);
}