1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
sendereditinvitation.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 = 'edit';
12
13 public function executeAfterSuccessfulInvitation(): void
14 {
15 }
16
17 protected function getContent(): array
18 {
19 $attachmentManager = new AttachmentEditManager($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' => $this->getChangeFieldsTitle(),
45 'STATUS' => 'event',
46 ];
47 }
48
52 protected function getChangeFieldsTitle(): string
53 {
54 $fields = $this->context->getChangeFields();
55 if (count($fields) === 1)
56 {
57 switch ($fields[0]['fieldKey'])
58 {
59 case 'DATE_FROM':
60 return Loc::getMessage('EC_CALENDAR_ICAL_MAIL_CHANGE_FIELD_TITLE_DATE');
61 case 'LOCATION':
62 return Loc::getMessage('EC_CALENDAR_ICAL_MAIL_CHANGE_FIELD_TITLE_LOCATION');
63 case 'DESCRIPTION':
64 return Loc::getMessage('EC_CALENDAR_ICAL_MAIL_CHANGE_FIELD_TITLE_DESCRIPTION');
65 case 'RRULE':
66 return Loc::getMessage('EC_CALENDAR_ICAL_MAIL_CHANGE_FIELD_TITLE_RRULE');
67 case 'NAME':
68 return Loc::getMessage('EC_CALENDAR_ICAL_MAIL_CHANGE_FIELD_TITLE_NAME');
69 default:
70 return Loc::getMessage('EC_CALENDAR_ICAL_MAIL_METHOD_EDIT');
71 }
72 }
73
74 return Loc::getMessage('EC_CALENDAR_ICAL_MAIL_METHOD_EDIT');
75 }
76
80 protected function getSubjectTitle(): string
81 {
82 if (Loader::includeModule('bitrix24') && \CBitrix24::isFreeLicense())
83 {
84 return Loc::getMessage("EC_CALENDAR_ICAL_MAIL_METHOD_EDIT");
85 }
86
87 return Loc::getMessage("EC_CALENDAR_ICAL_MAIL_METHOD_EDIT") . ": {$this->event['NAME']}";
88 }
89}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
Определения waybill.php:936
$fields
Определения yandex_run.php:501