Issues (171)

lib/MapiProps.php (24 issues)

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,
0 ignored issues
show
The constant grommunio\DAV\PidLidReminderSet was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
30
			"remindertime" => "PT_LONG:PSETID_Common:" . PidLidReminderDelta,
0 ignored issues
show
The constant grommunio\DAV\PidLidReminderDelta was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
31
			"meetingstatus" => "PT_LONG:PSETID_Appointment:" . PidLidAppointmentStateFlags,
0 ignored issues
show
The constant grommunio\DAV\PidLidAppointmentStateFlags was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
32
			"isrecurring" => "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring,
0 ignored issues
show
The constant grommunio\DAV\PidLidRecurring was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
33
			"recurringstate" => "PT_BINARY:PSETID_Appointment:" . PidLidAppointmentRecur,
0 ignored issues
show
The constant grommunio\DAV\PidLidAppointmentRecur was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
34
			"timezonetag" => "PT_BINARY:PSETID_Appointment:" . PidLidTimeZoneStruct,
0 ignored issues
show
The constant grommunio\DAV\PidLidTimeZoneStruct was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
35
			"timezonedesc" => "PT_STRING8:PSETID_Appointment:" . PidLidTimeZoneDescription,
0 ignored issues
show
The constant grommunio\DAV\PidLidTimeZoneDescription was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
36
			"recurrenceend" => "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd,
0 ignored issues
show
The constant grommunio\DAV\PidLidClipEnd was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
37
			"responsestatus" => "PT_LONG:PSETID_Appointment:" . PidLidResponseStatus,
0 ignored issues
show
The constant grommunio\DAV\PidLidResponseStatus was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
38
			"commonstart" => "PT_SYSTIME:PSETID_Common:" . PidLidCommonStart,
0 ignored issues
show
The constant grommunio\DAV\PidLidCommonStart was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
39
			"commonend" => "PT_SYSTIME:PSETID_Common:" . PidLidCommonEnd,
0 ignored issues
show
The constant grommunio\DAV\PidLidCommonEnd was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
40
			"reminderstart" => "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime,
0 ignored issues
show
The constant grommunio\DAV\PidLidReminderTime was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
41
			"duration" => "PT_LONG:PSETID_Appointment:" . PidLidAppointmentDuration,
0 ignored issues
show
The constant grommunio\DAV\PidLidAppointmentDuration was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
42
			"private" => "PT_BOOLEAN:PSETID_Common:" . PidLidPrivate,
0 ignored issues
show
The constant grommunio\DAV\PidLidPrivate was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
43
			"uid" => "PT_BINARY:PSETID_Meeting:" . PidLidCleanGlobalObjectId,
0 ignored issues
show
The constant grommunio\DAV\PidLidCleanGlobalObjectId was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
44
			"sideeffects" => "PT_LONG:PSETID_Common:" . PidLidSideEffects,
0 ignored issues
show
The constant grommunio\DAV\PidLidSideEffects was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
45
			"flagdueby" => "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime,
0 ignored issues
show
The constant grommunio\DAV\PidLidReminderSignalTime was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
46
			"icon" => PR_ICON_INDEX,
47
			"mrwassent" => "PT_BOOLEAN:PSETID_Appointment:" . PidLidFInvited,
0 ignored issues
show
The constant grommunio\DAV\PidLidFInvited was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
48
			"endtime" => "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole, // this is here for calendar restriction, tnef and ical
0 ignored issues
show
The constant grommunio\DAV\PidLidAppointmentEndWhole was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
49
			"starttime" => "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole, // this is here for calendar restriction, tnef and ical
0 ignored issues
show
The constant grommunio\DAV\PidLidAppointmentStartWhole was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
50
			"clipstart" => "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart, // ical only
0 ignored issues
show
The constant grommunio\DAV\PidLidClipStart was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
51
			"recurrencetype" => "PT_LONG:PSETID_Appointment:" . PidLidRecurrenceType,
0 ignored issues
show
The constant grommunio\DAV\PidLidRecurrenceType was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
52
			"body" => PR_BODY,
53
			"rtfcompressed" => PR_RTF_COMPRESSED,
54
			"html" => PR_HTML,
55
			"rtfinsync" => PR_RTF_IN_SYNC,
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
The constant grommunio\DAV\olNonMeeting was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
68
			"responsestatus" => olResponseNone,
0 ignored issues
show
The constant grommunio\DAV\olResponseNone was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
69
		];
70
	}
71
}
72