1 | <?php |
||
2 | /* |
||
3 | * SPDX-License-Identifier: AGPL-3.0-only |
||
4 | * SPDX-FileCopyrightText: Copyright 2016 - 2018 Kopano b.v. |
||
5 | * SPDX-FileCopyrightText: Copyright 2020 - 2024 grommunio GmbH |
||
6 | * |
||
7 | * MAPI Property definitions. |
||
8 | */ |
||
9 | |||
10 | namespace grommunio\DAV; |
||
11 | |||
12 | class MapiProps { |
||
13 | public const PROP_VCARDUID = "PT_UNICODE:PSETID_GROMOX:vcarduid"; |
||
14 | |||
15 | /** |
||
16 | * Returns appointment specific MAPI properties |
||
17 | * Origins: Z-Push. |
||
18 | * |
||
19 | * @return array |
||
20 | */ |
||
21 | public static function GetAppointmentProperties() { |
||
22 | return [ |
||
23 | "sourcekey" => PR_SOURCE_KEY, |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
24 | "representingentryid" => PR_SENT_REPRESENTING_ENTRYID, |
||
0 ignored issues
–
show
|
|||
25 | "representingname" => PR_SENT_REPRESENTING_NAME, |
||
0 ignored issues
–
show
|
|||
26 | "sentrepresentingemail" => PR_SENT_REPRESENTING_EMAIL_ADDRESS, |
||
0 ignored issues
–
show
|
|||
27 | "sentrepresentingaddt" => PR_SENT_REPRESENTING_ADDRTYPE, |
||
0 ignored issues
–
show
|
|||
28 | "sentrepresentinsrchk" => PR_SENT_REPRESENTING_SEARCH_KEY, |
||
0 ignored issues
–
show
|
|||
29 | "reminderset" => "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet, |
||
0 ignored issues
–
show
|
|||
30 | "remindertime" => "PT_LONG:PSETID_Common:" . PidLidReminderDelta, |
||
0 ignored issues
–
show
|
|||
31 | "meetingstatus" => "PT_LONG:PSETID_Appointment:" . PidLidAppointmentStateFlags, |
||
0 ignored issues
–
show
|
|||
32 | "isrecurring" => "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring, |
||
0 ignored issues
–
show
|
|||
33 | "recurringstate" => "PT_BINARY:PSETID_Appointment:" . PidLidAppointmentRecur, |
||
0 ignored issues
–
show
|
|||
34 | "timezonetag" => "PT_BINARY:PSETID_Appointment:" . PidLidTimeZoneStruct, |
||
0 ignored issues
–
show
|
|||
35 | "timezonedesc" => "PT_STRING8:PSETID_Appointment:" . PidLidTimeZoneDescription, |
||
0 ignored issues
–
show
|
|||
36 | "recurrenceend" => "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd, |
||
0 ignored issues
–
show
|
|||
37 | "responsestatus" => "PT_LONG:PSETID_Appointment:" . PidLidResponseStatus, |
||
0 ignored issues
–
show
|
|||
38 | "commonstart" => "PT_SYSTIME:PSETID_Common:" . PidLidCommonStart, |
||
0 ignored issues
–
show
|
|||
39 | "commonend" => "PT_SYSTIME:PSETID_Common:" . PidLidCommonEnd, |
||
0 ignored issues
–
show
|
|||
40 | "reminderstart" => "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime, |
||
0 ignored issues
–
show
|
|||
41 | "duration" => "PT_LONG:PSETID_Appointment:" . PidLidAppointmentDuration, |
||
0 ignored issues
–
show
|
|||
42 | "private" => "PT_BOOLEAN:PSETID_Common:" . PidLidPrivate, |
||
0 ignored issues
–
show
|
|||
43 | "uid" => "PT_BINARY:PSETID_Meeting:" . PidLidCleanGlobalObjectId, |
||
0 ignored issues
–
show
|
|||
44 | "sideeffects" => "PT_LONG:PSETID_Common:" . PidLidSideEffects, |
||
0 ignored issues
–
show
|
|||
45 | "flagdueby" => "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime, |
||
0 ignored issues
–
show
|
|||
46 | "icon" => PR_ICON_INDEX, |
||
0 ignored issues
–
show
|
|||
47 | "mrwassent" => "PT_BOOLEAN:PSETID_Appointment:" . PidLidFInvited, |
||
0 ignored issues
–
show
|
|||
48 | "endtime" => "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole, // this is here for calendar restriction, tnef and ical |
||
0 ignored issues
–
show
|
|||
49 | "starttime" => "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole, // this is here for calendar restriction, tnef and ical |
||
0 ignored issues
–
show
|
|||
50 | "clipstart" => "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart, // ical only |
||
0 ignored issues
–
show
|
|||
51 | "recurrencetype" => "PT_LONG:PSETID_Appointment:" . PidLidRecurrenceType, |
||
0 ignored issues
–
show
|
|||
52 | "body" => PR_BODY, |
||
0 ignored issues
–
show
|
|||
53 | "rtfcompressed" => PR_RTF_COMPRESSED, |
||
0 ignored issues
–
show
|
|||
54 | "html" => PR_HTML, |
||
0 ignored issues
–
show
|
|||
55 | "rtfinsync" => PR_RTF_IN_SYNC, |
||
0 ignored issues
–
show
|
|||
56 | ]; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Returns default values for some appointment properties. |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | public static function GetDefaultAppoinmentProperties() { |
||
65 | return [ |
||
66 | "isrecurring" => false, |
||
67 | "meetingstatus" => olNonMeeting, |
||
0 ignored issues
–
show
|
|||
68 | "responsestatus" => olResponseNone, |
||
0 ignored issues
–
show
|
|||
69 | ]; |
||
70 | } |
||
71 | } |
||
72 |