• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/ical/mailinvitation/incominginvitationrequesthandler.php
  • Класс: BitrixCalendarICalMailInvitationIncomingInvitationRequestHandler
  • Вызов: IncomingInvitationRequestHandler::saveChildEvent
protected function saveChildEvent(array $preparedEvent): int
{
	$preparedEvent['MEETING']['MAILTO'] = $this->organizer['EMAIL'] ?? $this->emailTo;

	if ($this->icalComponent->getEvent()->getAttendees())
	{
		$preparedEvent['DESCRIPTION'] .= "rn"
			. Loc::getMessage('EC_EDEV_GUESTS') . ": "
			. $this->parseAttendeesForDescription($this->icalComponent->getEvent()->getAttendees());
	}

	if ($this->icalComponent->getEvent()->getAttachments())
	{
		$preparedEvent['DESCRIPTION'] .= "rn"
			. Loc::getMessage('EC_FILES_TITLE') . ': '
			. $this->parseAttachmentsForDescription($this->icalComponent->getEvent()->getAttachments());
	}

	return (int)CCalendar::SaveEvent([
		'arFields' => $preparedEvent,
	]);
}