• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/classes/general/event_calendar.php
  • Класс: CECCalendar
  • Вызов: CECCalendar::GetExportLink
static function GetExportLink($calendarId, $ownerType = false, $ownerId = false, $iblockId = false)
{
	global $USER;
	$userId = $USER->IsAuthorized() ? $USER->GetID() : '';
	$params_ = '';
	if ($ownerType !== false)
		$params_ .= '&owner_type='.mb_strtolower($ownerType);
	if ($ownerId !== false)
		$params_ .=  '&owner_id='.intval($ownerId);
	if ($iblockId !== false)
		$params_ .= '&ibl='.mb_strtolower($iblockId);
	return $params_.'&user_id='.$userId.'&calendar_id='.intval($calendarId).'&sign='.CECCalendar::GetSign($userId, $calendarId);
}