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