• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/ical/mailinvitation/attachmentmanager.php
  • Класс: BitrixCalendarICalMailInvitationAttachmentManager
  • Вызов: AttachmentManager::prepareDescription
protected function prepareDescription(string $description = null): ?string
{
	if (
		empty($description)
		&& (empty($this->event['ICAL_ATTACHES'])
			|| empty($this->event['ICAL_ATTACHES']->getCollection())
		)
	)
	{
		return null;
	}

	$description = $this->parseText($description);

	if (empty($this->event['ICAL_ATTACHES']->getCollection()))
	{
		return str_replace("rn", " n", $description);
	}

	return str_replace("rn", " n", $description . "n" . $this->getFilesDescription());
}