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, |
|
|
|
|
24
|
|
|
"representingentryid" => PR_SENT_REPRESENTING_ENTRYID, |
|
|
|
|
25
|
|
|
"representingname" => PR_SENT_REPRESENTING_NAME, |
|
|
|
|
26
|
|
|
"sentrepresentingemail" => PR_SENT_REPRESENTING_EMAIL_ADDRESS, |
|
|
|
|
27
|
|
|
"sentrepresentingaddt" => PR_SENT_REPRESENTING_ADDRTYPE, |
|
|
|
|
28
|
|
|
"sentrepresentinsrchk" => PR_SENT_REPRESENTING_SEARCH_KEY, |
|
|
|
|
29
|
|
|
"reminderset" => "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet, |
|
|
|
|
30
|
|
|
"remindertime" => "PT_LONG:PSETID_Common:" . PidLidReminderDelta, |
|
|
|
|
31
|
|
|
"meetingstatus" => "PT_LONG:PSETID_Appointment:" . PidLidAppointmentStateFlags, |
|
|
|
|
32
|
|
|
"isrecurring" => "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring, |
|
|
|
|
33
|
|
|
"recurringstate" => "PT_BINARY:PSETID_Appointment:" . PidLidAppointmentRecur, |
|
|
|
|
34
|
|
|
"timezonetag" => "PT_BINARY:PSETID_Appointment:" . PidLidTimeZoneStruct, |
|
|
|
|
35
|
|
|
"timezonedesc" => "PT_STRING8:PSETID_Appointment:" . PidLidTimeZoneDescription, |
|
|
|
|
36
|
|
|
"recurrenceend" => "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd, |
|
|
|
|
37
|
|
|
"responsestatus" => "PT_LONG:PSETID_Appointment:" . PidLidResponseStatus, |
|
|
|
|
38
|
|
|
"commonstart" => "PT_SYSTIME:PSETID_Common:" . PidLidCommonStart, |
|
|
|
|
39
|
|
|
"commonend" => "PT_SYSTIME:PSETID_Common:" . PidLidCommonEnd, |
|
|
|
|
40
|
|
|
"reminderstart" => "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime, |
|
|
|
|
41
|
|
|
"duration" => "PT_LONG:PSETID_Appointment:" . PidLidAppointmentDuration, |
|
|
|
|
42
|
|
|
"private" => "PT_BOOLEAN:PSETID_Common:" . PidLidPrivate, |
|
|
|
|
43
|
|
|
"uid" => "PT_BINARY:PSETID_Meeting:" . PidLidCleanGlobalObjectId, |
|
|
|
|
44
|
|
|
"sideeffects" => "PT_LONG:PSETID_Common:" . PidLidSideEffects, |
|
|
|
|
45
|
|
|
"flagdueby" => "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime, |
|
|
|
|
46
|
|
|
"icon" => PR_ICON_INDEX, |
|
|
|
|
47
|
|
|
"mrwassent" => "PT_BOOLEAN:PSETID_Appointment:" . PidLidFInvited, |
|
|
|
|
48
|
|
|
"endtime" => "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole, // this is here for calendar restriction, tnef and ical |
|
|
|
|
49
|
|
|
"starttime" => "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole, // this is here for calendar restriction, tnef and ical |
|
|
|
|
50
|
|
|
"clipstart" => "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart, // ical only |
|
|
|
|
51
|
|
|
"recurrencetype" => "PT_LONG:PSETID_Appointment:" . PidLidRecurrenceType, |
|
|
|
|
52
|
|
|
"body" => PR_BODY, |
|
|
|
|
53
|
|
|
"rtfcompressed" => PR_RTF_COMPRESSED, |
|
|
|
|
54
|
|
|
"html" => PR_HTML, |
|
|
|
|
55
|
|
|
"rtfinsync" => PR_RTF_IN_SYNC, |
|
|
|
|
56
|
|
|
"messageflags" => PR_MESSAGE_FLAGS, |
|
|
|
|
57
|
|
|
]; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Returns default values for some appointment properties. |
62
|
|
|
* |
63
|
|
|
* @return array |
64
|
|
|
*/ |
65
|
|
|
public static function GetDefaultAppoinmentProperties() { |
66
|
|
|
return [ |
67
|
|
|
"isrecurring" => false, |
68
|
|
|
"meetingstatus" => olNonMeeting, |
|
|
|
|
69
|
|
|
"responsestatus" => olResponseNone, |
|
|
|
|
70
|
|
|
"messageflags" => MSGFLAG_READ, |
|
|
|
|
71
|
|
|
]; |
72
|
|
|
} |
73
|
|
|
} |
74
|
|
|
|