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

	$filesDescription = [];
	if (is_iterable($this->event['ICAL_ATTACHES']))
	{
		foreach ($this->event['ICAL_ATTACHES'] as $attach)
		{
			if ($attach instanceof Attach)
			{
				$filesDescription[] = "{$attach->getName()} ({$attach->getLink()})";
			}
		}
	}

	return Loc::getMessage('EC_FILES_TITLE') . ":n" . implode("n", $filesDescription) ."";
}