Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
attachmentrequestmanager.php
1<?php
2
3
5
6
14
20{
25 public function __construct(array $event)
26 {
27 parent::__construct($event);
28 $this->uid = Helper::getUniqId();
29 }
30
35 public function getContent(): string
36 {
39 ->setMethod(mb_strtoupper(SenderRequestInvitation::METHOD))
40 ->setTimezones(Timezone::createInstance()
41 ->setTimezoneId(Helper::getTimezoneObject($event['TZ_FROM']))
42 ->setObservance(StandardObservances::createInstance()
43 ->setOffsetFrom(Helper::getTimezoneObject($event['TZ_FROM']))
44 ->setOffsetTo(Helper::getTimezoneObject($event['TZ_TO']))
45 ->setDTStart()
46 )
47 )
48 ->addEvent(Event::createInstance($this->uid)
49 ->setName($event['NAME'])
50 ->setAttendees($this->event['ICAL_ATTENDEES'])
51 ->setStartsAt(Util::getDateObject($event['DATE_FROM'], $event['SKIP_TIME'], $event['TZ_FROM']))
52 ->setEndsAt(Util::getDateObject($event['DATE_TO'], $event['SKIP_TIME'], $event['TZ_TO']))
53 ->setCreatedAt(Util::getDateObject($event['CREATED'], false, $event['TZ_FROM']))
54 ->setDtStamp(Util::getDateObject($event['CREATED'], false, $event['TZ_FROM']))
55 ->setModified(Util::getDateObject($event['MODIFIED'], false, $event['TZ_FROM']))
56 ->setWithTimezone(!$event['SKIP_TIME'])
57 ->setWithTime(!$event['SKIP_TIME'])
58 ->setOrganizer($event['ICAL_ORGANIZER'], $this->getOrganizerMailTo())
59 ->setDescription($this->prepareDescription($event['DESCRIPTION']))
60 ->setTransparent(Dictionary::TRANSPARENT[$event['ACCESSIBILITY']] ?? Dictionary::TRANSPARENT['busy'])
61 ->setRRule($this->prepareRecurrenceRule($event['RRULE']))
62// ->setExdates($this->prepareExDate($event['EXDATE']))
63 ->setLocation($event['TEXT_LOCATION'])
64 ->setSequence((int)$event['VERSION'])
65 ->setStatus(Dictionary::EVENT_STATUS['confirmed'])
66 )
67 ->get();
68 }
69}
static createInstance(string $name=null)
Definition calendar.php:27
static getTimezoneObject(string $tz=null)
Definition helper.php:178
static getDateObject(string $date=null, ?bool $fullDay=true, ?string $tz='UTC')
Definition util.php:102