1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
sendercancelinvitation.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\ICal\MailInvitation;
4
5use Bitrix\Main\Loader;
6use Bitrix\Main\Localization\Loc;
7use Bitrix\Main\ObjectException;
8
10{
11 public const METHOD = 'cancel';
12
17 protected function getContent(): array
18 {
19 $attachmentManager = new AttachmentCancelManager($this->event);
20 $this->uid = $attachmentManager->getUid();
21
22 if (!$this->uid)
23 {
24 return [];
25 }
26
27 return [[
28 'CONTENT' => $attachmentManager->getContent(),
29 'CONTENT_TYPE' => self::CONTENT_TYPE,
30 'METHOD' => mb_strtolower(self::METHOD),
31 'CHARSET' => self::CHARSET,
32 'NAME' => self::ATTACHMENT_NAME,
33 'ID' => Helper::getUniqId(),
34 ]];
35 }
36
41 protected function getTemplateParams(): array
42 {
43 return [
44 'LOC_MEETING_STATUS' => Loc::getMessage('EC_CALENDAR_ICAL_MAIL_METHOD_CANCEL'),
45 'STATUS' => 'event_cancelled',
46 ];
47 }
48
52 protected function getSubjectTitle(): string
53 {
54 if (Loader::includeModule('bitrix24') && \CBitrix24::isFreeLicense())
55 {
56 return Loc::getMessage("EC_CALENDAR_ICAL_MAIL_METHOD_CANCEL");
57 }
58
59 return Loc::getMessage("EC_CALENDAR_ICAL_MAIL_METHOD_CANCEL") . ": {$this->event['NAME']}";
60 }
61
63 {
64 }
65}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804