1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
senderrequestinvitation.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\ICal\MailInvitation;
4
5use Bitrix\Calendar\Internals\EventTable;
6use Bitrix\Main\Loader;
7use Bitrix\Main\Localization\Loc;
8use Bitrix\Main\ORM\Data\UpdateResult;
9
11{
12 public const METHOD = 'request';
13 protected function getContent(): array
14 {
15 $attachmentManager = new AttachmentRequestManager($this->event);
16 $this->uid = $attachmentManager->getUid();
17
18 return [[
19 'CONTENT' => $attachmentManager->getContent(),
20 'CONTENT_TYPE' => self::CONTENT_TYPE,
21 'METHOD' => mb_strtolower(self::METHOD),
22 'CHARSET' => self::CHARSET,
23 'NAME' => self::ATTACHMENT_NAME,
24 'ID' => Helper::getUniqId(),
25 ]];
26 }
27
32 protected function getTemplateParams(): array
33 {
34 return [
35 'LOC_MEETING_STATUS' => Loc::getMessage('EC_CALENDAR_ICAL_MAIL_YOU_WAS_INVITED'),
36 'STATUS' => 'event',
37 ];
38 }
39
43 protected function getSubjectTitle(): string
44 {
45 if (Loader::includeModule('bitrix24') && \CBitrix24::isFreeLicense())
46 {
47 return Loc::getMessage("EC_CALENDAR_ICAL_MAIL_METHOD_REQUEST");
48 }
49
50 return Loc::getMessage("EC_CALENDAR_ICAL_MAIL_METHOD_REQUEST") . ": {$this->event['NAME']}";
51 }
52
57 public function executeAfterSuccessfulInvitation(): bool
58 {
59 $result = EventTable::update(
60 $this->getEventId(),
61 [
62 'DAV_XML_ID' => $this->getUId(),
63 ]
64 );
65
66 return ($result instanceof UpdateResult) && $result->isSuccess();
67 }
68}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14