@@ -400,12 +400,12 @@ |
||
400 | 400 | $properties["address_book_long"] = "PT_LONG:PSETID_Address:0x8029"; |
401 | 401 | $properties["business_address"] = "PT_STRING8:PSETID_Address:0x801b"; |
402 | 402 | $properties["email_address_entryid_1"] = "PT_BINARY:PSETID_Address:0x8085"; |
403 | - $properties["email_address_display_name_1"] = "PT_STRING8:PSETID_Address:".PidLidEmail1DisplayName; |
|
404 | - $properties["business_address_street"] = "PT_STRING8:PSETID_Address:".PidLidWorkAddressStreet; |
|
405 | - $properties["business_address_city"] = "PT_STRING8:PSETID_Address:".PidLidWorkAddressCity; |
|
406 | - $properties["business_address_state"] = "PT_STRING8:PSETID_Address:".PidLidWorkAddressState; |
|
407 | - $properties["business_address_postal_code"] = "PT_STRING8:PSETID_Address:".PidLidWorkAddressPostalCode; |
|
408 | - $properties["business_address_country"] = "PT_STRING8:PSETID_Address:".PidLidWorkAddressCountry; |
|
403 | + $properties["email_address_display_name_1"] = "PT_STRING8:PSETID_Address:" . PidLidEmail1DisplayName; |
|
404 | + $properties["business_address_street"] = "PT_STRING8:PSETID_Address:" . PidLidWorkAddressStreet; |
|
405 | + $properties["business_address_city"] = "PT_STRING8:PSETID_Address:" . PidLidWorkAddressCity; |
|
406 | + $properties["business_address_state"] = "PT_STRING8:PSETID_Address:" . PidLidWorkAddressState; |
|
407 | + $properties["business_address_postal_code"] = "PT_STRING8:PSETID_Address:" . PidLidWorkAddressPostalCode; |
|
408 | + $properties["business_address_country"] = "PT_STRING8:PSETID_Address:" . PidLidWorkAddressCountry; |
|
409 | 409 | |
410 | 410 | $properties = getPropIdsFromStrings($store, $properties); |
411 | 411 |
@@ -143,51 +143,51 @@ discard block |
||
143 | 143 | $properties['unknown2'] = 'PT_BOOLEAN:PSETID_Meeting:0xa'; |
144 | 144 | $properties['attendee_critical_change'] = 'PT_SYSTIME:PSETID_Meeting:0x1'; |
145 | 145 | $properties['owner_critical_change'] = 'PT_SYSTIME:PSETID_Meeting:0x1a'; |
146 | - $properties['meetingstatus'] = 'PT_LONG:PSETID_Appointment:'.PidLidAppointmentStateFlags; |
|
146 | + $properties['meetingstatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentStateFlags; |
|
147 | 147 | $properties['responsestatus'] = 'PT_LONG:PSETID_Appointment:0x8218'; |
148 | 148 | $properties['unknown6'] = 'PT_LONG:PSETID_Meeting:0x4'; |
149 | 149 | $properties['replytime'] = 'PT_SYSTIME:PSETID_Appointment:0x8220'; |
150 | 150 | $properties['usetnef'] = 'PT_BOOLEAN:PSETID_Common:0x8582'; |
151 | - $properties['recurrence_data'] = 'PT_BINARY:PSETID_Appointment:'.PidLidAppointmentRecur; |
|
152 | - $properties['reminderminutes'] = 'PT_LONG:PSETID_Common:'.PidLidReminderDelta; |
|
153 | - $properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:'.PidLidReminderSet; |
|
151 | + $properties['recurrence_data'] = 'PT_BINARY:PSETID_Appointment:' . PidLidAppointmentRecur; |
|
152 | + $properties['reminderminutes'] = 'PT_LONG:PSETID_Common:' . PidLidReminderDelta; |
|
153 | + $properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:' . PidLidReminderSet; |
|
154 | 154 | $properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200'; |
155 | - $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:'.PidLidAppointmentSequence; // AppointmentSequenceNumber |
|
155 | + $properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence; // AppointmentSequenceNumber |
|
156 | 156 | $properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202'; |
157 | - $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
158 | - $properties['busystatus'] = 'PT_LONG:PSETID_Appointment:'.PidLidBusyStatus; |
|
159 | - $properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:'.PidLidIntendedBusyStatus; |
|
160 | - $properties['start'] = 'PT_SYSTIME:PSETID_Appointment:'.PidLidAppointmentStartWhole; |
|
157 | + $properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence |
|
158 | + $properties['busystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidBusyStatus; |
|
159 | + $properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidIntendedBusyStatus; |
|
160 | + $properties['start'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole; |
|
161 | 161 | $properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2'; |
162 | - $properties['location'] = 'PT_STRING8:PSETID_Appointment:'.PidLidLocation; |
|
163 | - $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
164 | - $properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:'.PidLidAppointmentStartWhole; |
|
165 | - $properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:'.PidLidAppointmentEndWhole; |
|
166 | - $properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:'.PidLidReminderSignalTime; |
|
162 | + $properties['location'] = 'PT_STRING8:PSETID_Appointment:' . PidLidLocation; |
|
163 | + $properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent |
|
164 | + $properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole; |
|
165 | + $properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentEndWhole; |
|
166 | + $properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:' . PidLidReminderSignalTime; |
|
167 | 167 | $properties['commonstart'] = 'PT_SYSTIME:PSETID_Common:0x8516'; |
168 | 168 | $properties['commonend'] = 'PT_SYSTIME:PSETID_Common:0x8517'; |
169 | - $properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:'.PidLidRecurring; |
|
170 | - $properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:'.PidLidClipStart; |
|
171 | - $properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:'.PidLidClipEnd; |
|
172 | - $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
173 | - $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
174 | - $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
175 | - $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
176 | - $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
169 | + $properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:' . PidLidRecurring; |
|
170 | + $properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipStart; |
|
171 | + $properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipEnd; |
|
172 | + $properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime |
|
173 | + $properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime |
|
174 | + $properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate |
|
175 | + $properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime |
|
176 | + $properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION |
|
177 | 177 | $properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230'; |
178 | 178 | // Propose new time properties |
179 | - $properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:'.PidLidAppointmentProposedStartWhole; |
|
180 | - $properties['proposed_end_whole'] = 'PT_SYSTIME:PSETID_Appointment:'.PidLidAppointmentProposedEndWhole; |
|
179 | + $properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentProposedStartWhole; |
|
180 | + $properties['proposed_end_whole'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentProposedEndWhole; |
|
181 | 181 | $properties['proposed_duration'] = 'PT_LONG:PSETID_Appointment:0x8256'; |
182 | - $properties['counter_proposal'] = 'PT_BOOLEAN:PSETID_Appointment:'.PidLidAppointmentCounterProposal; |
|
182 | + $properties['counter_proposal'] = 'PT_BOOLEAN:PSETID_Appointment:' . PidLidAppointmentCounterProposal; |
|
183 | 183 | $properties['recurring_pattern'] = 'PT_STRING8:PSETID_Appointment:0x8232'; |
184 | - $properties['basedate'] = 'PT_SYSTIME:PSETID_Appointment:'.PidLidExceptionReplaceTime; |
|
184 | + $properties['basedate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidExceptionReplaceTime; |
|
185 | 185 | $properties['meetingtype'] = 'PT_LONG:PSETID_Meeting:0x26'; |
186 | - $properties['timezone_data'] = 'PT_BINARY:PSETID_Appointment:'.PidLidTimeZoneStruct; |
|
187 | - $properties['timezone'] = 'PT_STRING8:PSETID_Appointment:'.PidLidTimeZoneDescription; |
|
186 | + $properties['timezone_data'] = 'PT_BINARY:PSETID_Appointment:' . PidLidTimeZoneStruct; |
|
187 | + $properties['timezone'] = 'PT_STRING8:PSETID_Appointment:' . PidLidTimeZoneDescription; |
|
188 | 188 | $properties['categories'] = 'PT_MV_STRING8:PS_PUBLIC_STRINGS:Keywords'; |
189 | - $properties['private'] = 'PT_BOOLEAN:PSETID_Common:'.PidLidPrivate; |
|
190 | - $properties['alldayevent'] = 'PT_BOOLEAN:PSETID_Appointment:'.PidLidAppointmentSubType; |
|
189 | + $properties['private'] = 'PT_BOOLEAN:PSETID_Common:' . PidLidPrivate; |
|
190 | + $properties['alldayevent'] = 'PT_BOOLEAN:PSETID_Appointment:' . PidLidAppointmentSubType; |
|
191 | 191 | $properties['toattendeesstring'] = 'PT_STRING8:PSETID_Appointment:0x823B'; |
192 | 192 | $properties['ccattendeesstring'] = 'PT_STRING8:PSETID_Appointment:0x823C'; |
193 | 193 | |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | $listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY; |
549 | 549 | $messageProps = mapi_getprops($this->message, $listProperties); |
550 | 550 | |
551 | - $goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3) |
|
551 | + $goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3) |
|
552 | 552 | if (!isset($goid)) { |
553 | 553 | return; |
554 | 554 | } |
@@ -1483,7 +1483,7 @@ discard block |
||
1483 | 1483 | $props[$this->proptags['goid2']] = $goid; |
1484 | 1484 | |
1485 | 1485 | if (!isset($props[$this->proptags['updatecounter']])) { |
1486 | - $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
1486 | + $props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero. |
|
1487 | 1487 | $props[$this->proptags['last_updatecounter']] = 0; |
1488 | 1488 | } |
1489 | 1489 | |
@@ -2282,12 +2282,12 @@ discard block |
||
2282 | 2282 | $hasOrganizer = false; |
2283 | 2283 | // Check if meeting already has an organizer. |
2284 | 2284 | foreach ($recipients as $key => $recipient) { |
2285 | - if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) { |
|
2285 | + if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) { |
|
2286 | 2286 | $hasOrganizer = true; |
2287 | 2287 | } |
2288 | 2288 | elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) { |
2289 | 2289 | // Recipients for an occurrence |
2290 | - $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse; |
|
2290 | + $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse; |
|
2291 | 2291 | } |
2292 | 2292 | } |
2293 | 2293 | |
@@ -2301,7 +2301,7 @@ discard block |
||
2301 | 2301 | $organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME]; |
2302 | 2302 | $organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE]; |
2303 | 2303 | $organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; |
2304 | - $organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer; |
|
2304 | + $organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer; |
|
2305 | 2305 | $organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY]; |
2306 | 2306 | |
2307 | 2307 | // Add organizer to recipients list. |
@@ -2487,7 +2487,7 @@ discard block |
||
2487 | 2487 | $getResourcesRestriction = [ |
2488 | 2488 | RES_PROPERTY, |
2489 | 2489 | [ |
2490 | - RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2490 | + RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2491 | 2491 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2492 | 2492 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2493 | 2493 | ], |
@@ -2763,7 +2763,7 @@ discard block |
||
2763 | 2763 | $getResourcesRestriction = [ |
2764 | 2764 | RES_PROPERTY, |
2765 | 2765 | [ |
2766 | - RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2766 | + RELOP => RELOP_EQ, // Equals recipient type 3: Resource |
|
2767 | 2767 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2768 | 2768 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2769 | 2769 | ], |
@@ -2981,7 +2981,7 @@ discard block |
||
2981 | 2981 | $restriction[1][] = [ |
2982 | 2982 | RES_PROPERTY, |
2983 | 2983 | [ |
2984 | - RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2984 | + RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
2985 | 2985 | ULPROPTAG => PR_RECIPIENT_TYPE, |
2986 | 2986 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
2987 | 2987 | ], |
@@ -3084,7 +3084,7 @@ discard block |
||
3084 | 3084 | $stripResourcesRestriction[1][] = [ |
3085 | 3085 | RES_PROPERTY, |
3086 | 3086 | [ |
3087 | - RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
3087 | + RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource) |
|
3088 | 3088 | ULPROPTAG => PR_RECIPIENT_TYPE, |
3089 | 3089 | VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC], |
3090 | 3090 | ], |
@@ -3190,7 +3190,7 @@ discard block |
||
3190 | 3190 | $newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled'; |
3191 | 3191 | $newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request |
3192 | 3192 | $newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free |
3193 | - $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
3193 | + $newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance |
|
3194 | 3194 | if (isset($newmessageprops[PR_SUBJECT])) { |
3195 | 3195 | $newmessageprops[PR_SUBJECT] = dgettext('zarafa', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT]; |
3196 | 3196 | } |
@@ -27,26 +27,26 @@ discard block |
||
27 | 27 | $properties["importance"] = PR_IMPORTANCE; |
28 | 28 | $properties["sensitivity"] = PR_SENSITIVITY; |
29 | 29 | $properties["last_modification_time"] = PR_LAST_MODIFICATION_TIME; |
30 | - $properties["status"] = "PT_LONG:PSETID_Task:".PidLidTaskStatus; |
|
31 | - $properties["percent_complete"] = "PT_DOUBLE:PSETID_Task:".PidLidPercentComplete; |
|
32 | - $properties["startdate"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskStartDate; |
|
33 | - $properties["duedate"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskDueDate; |
|
30 | + $properties["status"] = "PT_LONG:PSETID_Task:" . PidLidTaskStatus; |
|
31 | + $properties["percent_complete"] = "PT_DOUBLE:PSETID_Task:" . PidLidPercentComplete; |
|
32 | + $properties["startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate; |
|
33 | + $properties["duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate; |
|
34 | 34 | $properties["reset_reminder"] = "PT_BOOLEAN:PSETID_Task:0x8107"; |
35 | 35 | $properties["dead_occurrence"] = "PT_BOOLEAN:PSETID_Task:0x8109"; |
36 | - $properties["datecompleted"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskDateCompleted; |
|
36 | + $properties["datecompleted"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDateCompleted; |
|
37 | 37 | $properties["recurring_data"] = "PT_BINARY:PSETID_Task:0x8116"; |
38 | 38 | $properties["actualwork"] = "PT_LONG:PSETID_Task:0x8110"; |
39 | 39 | $properties["totalwork"] = "PT_LONG:PSETID_Task:0x8111"; |
40 | - $properties["complete"] = "PT_BOOLEAN:PSETID_Task:".PidLidTaskComplete; |
|
40 | + $properties["complete"] = "PT_BOOLEAN:PSETID_Task:" . PidLidTaskComplete; |
|
41 | 41 | $properties["task_f_creator"] = "PT_BOOLEAN:PSETID_Task:0x811e"; |
42 | 42 | $properties["owner"] = "PT_STRING8:PSETID_Task:0x811f"; |
43 | 43 | $properties["recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126"; |
44 | 44 | |
45 | - $properties["reminder_minutes"] = "PT_LONG:PSETID_Common:".PidLidReminderDelta; |
|
46 | - $properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:".PidLidReminderTime; |
|
47 | - $properties["reminder"] = "PT_BOOLEAN:PSETID_Common:".PidLidReminderSet; |
|
45 | + $properties["reminder_minutes"] = "PT_LONG:PSETID_Common:" . PidLidReminderDelta; |
|
46 | + $properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime; |
|
47 | + $properties["reminder"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet; |
|
48 | 48 | |
49 | - $properties["private"] = "PT_BOOLEAN:PSETID_Common:".PidLidPrivate; |
|
49 | + $properties["private"] = "PT_BOOLEAN:PSETID_Common:" . PidLidPrivate; |
|
50 | 50 | $properties["contacts"] = "PT_MV_STRING8:PSETID_Common:0x853a"; |
51 | 51 | $properties["contacts_string"] = "PT_STRING8:PSETID_Common:0x8586"; |
52 | 52 | $properties["categories"] = "PT_MV_STRING8:PS_PUBLIC_STRINGS:Keywords"; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $properties["commonstart"] = "PT_SYSTIME:PSETID_Common:0x8516"; |
55 | 55 | $properties["commonend"] = "PT_SYSTIME:PSETID_Common:0x8517"; |
56 | 56 | $properties["commonassign"] = "PT_LONG:PSETID_Common:0x8518"; |
57 | - $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:".PidLidReminderSignalTime; |
|
57 | + $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime; |
|
58 | 58 | $properties["side_effects"] = "PT_LONG:PSETID_Common:0x8510"; |
59 | 59 | |
60 | 60 | $this->proptags = getPropIdsFromStrings($store, $properties); |
@@ -6,8 +6,8 @@ |
||
6 | 6 | */ |
7 | 7 | |
8 | 8 | /** |
9 | - * Status codes returned by MAPI functions. |
|
10 | - */ |
|
9 | + * Status codes returned by MAPI functions. |
|
10 | + */ |
|
11 | 11 | |
12 | 12 | /* From winerror.h */ |
13 | 13 | // |
@@ -62,36 +62,36 @@ discard block |
||
62 | 62 | $properties["display_to"] = PR_DISPLAY_TO; |
63 | 63 | $properties["importance"] = PR_IMPORTANCE; |
64 | 64 | $properties["sensitivity"] = PR_SENSITIVITY; |
65 | - $properties["startdate"] = "PT_SYSTIME:PSETID_Appointment:".PidLidAppointmentStartWhole; |
|
66 | - $properties["duedate"] = "PT_SYSTIME:PSETID_Appointment:".PidLidAppointmentEndWhole; |
|
67 | - $properties["recurring"] = "PT_BOOLEAN:PSETID_Appointment:".PidLidRecurring; |
|
68 | - $properties["recurring_data"] = "PT_BINARY:PSETID_Appointment:".PidLidAppointmentRecur; |
|
69 | - $properties["busystatus"] = "PT_LONG:PSETID_Appointment:".PidLidBusyStatus; |
|
65 | + $properties["startdate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole; |
|
66 | + $properties["duedate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole; |
|
67 | + $properties["recurring"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring; |
|
68 | + $properties["recurring_data"] = "PT_BINARY:PSETID_Appointment:" . PidLidAppointmentRecur; |
|
69 | + $properties["busystatus"] = "PT_LONG:PSETID_Appointment:" . PidLidBusyStatus; |
|
70 | 70 | $properties["label"] = "PT_LONG:PSETID_Appointment:0x8214"; |
71 | - $properties["alldayevent"] = "PT_BOOLEAN:PSETID_Appointment:".PidLidAppointmentSubType; |
|
72 | - $properties["private"] = "PT_BOOLEAN:PSETID_Common:".PidLidPrivate; |
|
73 | - $properties["meeting"] = "PT_LONG:PSETID_Appointment:".PidLidAppointmentStateFlags; |
|
74 | - $properties["startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:".PidLidClipStart; |
|
75 | - $properties["enddate_recurring"] = "PT_SYSTIME:PSETID_Appointment:".PidLidClipEnd; |
|
71 | + $properties["alldayevent"] = "PT_BOOLEAN:PSETID_Appointment:" . PidLidAppointmentSubType; |
|
72 | + $properties["private"] = "PT_BOOLEAN:PSETID_Common:" . PidLidPrivate; |
|
73 | + $properties["meeting"] = "PT_LONG:PSETID_Appointment:" . PidLidAppointmentStateFlags; |
|
74 | + $properties["startdate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipStart; |
|
75 | + $properties["enddate_recurring"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd; |
|
76 | 76 | $properties["recurring_pattern"] = "PT_STRING8:PSETID_Appointment:0x8232"; |
77 | - $properties["location"] = "PT_STRING8:PSETID_Appointment:".PidLidLocation; |
|
78 | - $properties["duration"] = "PT_LONG:PSETID_Appointment:".PidLidAppointmentDuration; |
|
77 | + $properties["location"] = "PT_STRING8:PSETID_Appointment:" . PidLidLocation; |
|
78 | + $properties["duration"] = "PT_LONG:PSETID_Appointment:" . PidLidAppointmentDuration; |
|
79 | 79 | $properties["responsestatus"] = "PT_LONG:PSETID_Appointment:0x8218"; |
80 | - $properties["reminder"] = "PT_BOOLEAN:PSETID_Common:".PidLidReminderSet; |
|
81 | - $properties["reminder_minutes"] = "PT_LONG:PSETID_Common:".PidLidReminderDelta; |
|
80 | + $properties["reminder"] = "PT_BOOLEAN:PSETID_Common:" . PidLidReminderSet; |
|
81 | + $properties["reminder_minutes"] = "PT_LONG:PSETID_Common:" . PidLidReminderDelta; |
|
82 | 82 | $properties["recurrencetype"] = "PT_LONG:PSETID_Appointment:0x8231"; |
83 | 83 | $properties["contacts"] = "PT_MV_STRING8:PSETID_Common:0x853a"; |
84 | 84 | $properties["contacts_string"] = "PT_STRING8:PSETID_Common:0x8586"; |
85 | 85 | $properties["categories"] = "PT_MV_STRING8:PS_PUBLIC_STRINGS:Keywords"; |
86 | - $properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:".PidLidReminderTime; |
|
86 | + $properties["reminder_time"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderTime; |
|
87 | 87 | $properties["commonstart"] = "PT_SYSTIME:PSETID_Common:0x8516"; |
88 | 88 | $properties["commonend"] = "PT_SYSTIME:PSETID_Common:0x8517"; |
89 | - $properties["basedate"] = "PT_SYSTIME:PSETID_Appointment:".PidLidExceptionReplaceTime; |
|
90 | - $properties["timezone_data"] = "PT_BINARY:PSETID_Appointment:".PidLidTimeZoneStruct; |
|
91 | - $properties["timezone"] = "PT_STRING8:PSETID_Appointment:".PidLidTimeZoneDescription; |
|
92 | - $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:".PidLidReminderSignalTime; |
|
89 | + $properties["basedate"] = "PT_SYSTIME:PSETID_Appointment:" . PidLidExceptionReplaceTime; |
|
90 | + $properties["timezone_data"] = "PT_BINARY:PSETID_Appointment:" . PidLidTimeZoneStruct; |
|
91 | + $properties["timezone"] = "PT_STRING8:PSETID_Appointment:" . PidLidTimeZoneDescription; |
|
92 | + $properties["flagdueby"] = "PT_SYSTIME:PSETID_Common:" . PidLidReminderSignalTime; |
|
93 | 93 | $properties["side_effects"] = "PT_LONG:PSETID_Common:0x8510"; |
94 | - $properties["hideattachments"] = "PT_BOOLEAN:PSETID_Common:".PidLidSmartNoAttach; |
|
94 | + $properties["hideattachments"] = "PT_BOOLEAN:PSETID_Common:" . PidLidSmartNoAttach; |
|
95 | 95 | |
96 | 96 | $this->proptags = getPropIdsFromStrings($store, $properties); |
97 | 97 | } |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | $props[PR_EXCEPTION_ENDTIME] = $this->fromGMT($this->tz, $exception_props[$this->proptags["duedate"]]); |
736 | 736 | mapi_setprops($attachment, $props); |
737 | 737 | |
738 | - $imessage = mapi_attach_openobj($attachment, MAPI_CREATE | MAPI_MODIFY); |
|
738 | + $imessage = mapi_attach_openobj($attachment, MAPI_CREATE|MAPI_MODIFY); |
|
739 | 739 | |
740 | 740 | if ($copy_attach_from) { |
741 | 741 | $attachmentTable = mapi_message_getattachmenttable($copy_attach_from); |
@@ -1119,13 +1119,13 @@ discard block |
||
1119 | 1119 | // Remove all deleted recipients |
1120 | 1120 | if (isset($exception_recips['remove'])) { |
1121 | 1121 | foreach ($exception_recips['remove'] as &$recip) { |
1122 | - if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) { |
|
1123 | - $recip[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted; |
|
1122 | + if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) { |
|
1123 | + $recip[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted; |
|
1124 | 1124 | } |
1125 | 1125 | else { |
1126 | - $recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
|
1126 | + $recip[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable; |
|
1127 | 1127 | } |
1128 | - $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1128 | + $recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required |
|
1129 | 1129 | } |
1130 | 1130 | unset($recip); |
1131 | 1131 | mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']); |
@@ -1194,13 +1194,13 @@ discard block |
||
1194 | 1194 | |
1195 | 1195 | // If recipient is not in list of deleted recipient, add him |
1196 | 1196 | if (!$foundInDeletedRecipients) { |
1197 | - if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) { |
|
1198 | - $recipient[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted; |
|
1197 | + if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) { |
|
1198 | + $recipient[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted; |
|
1199 | 1199 | } |
1200 | 1200 | else { |
1201 | - $recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable; |
|
1201 | + $recipient[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable; |
|
1202 | 1202 | } |
1203 | - $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1203 | + $recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required |
|
1204 | 1204 | $deletedRecipients[] = $recipient; |
1205 | 1205 | } |
1206 | 1206 | } |
@@ -1260,12 +1260,12 @@ discard block |
||
1260 | 1260 | $hasOrganizer = false; |
1261 | 1261 | // Check if meeting already has an organizer. |
1262 | 1262 | foreach ($recipients as $key => $recipient) { |
1263 | - if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) { |
|
1263 | + if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) { |
|
1264 | 1264 | $hasOrganizer = true; |
1265 | 1265 | } |
1266 | 1266 | elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) { |
1267 | 1267 | // Recipients for an occurrence |
1268 | - $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse; |
|
1268 | + $recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse; |
|
1269 | 1269 | } |
1270 | 1270 | } |
1271 | 1271 | |
@@ -1279,7 +1279,7 @@ discard block |
||
1279 | 1279 | $organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME]; |
1280 | 1280 | $organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE]; |
1281 | 1281 | $organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; |
1282 | - $organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer; |
|
1282 | + $organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer; |
|
1283 | 1283 | $organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY]; |
1284 | 1284 | |
1285 | 1285 | // Add organizer to recipients list. |
@@ -842,11 +842,11 @@ discard block |
||
842 | 842 | |
843 | 843 | $dayofweek = gmdate("w", $monthbegindow); |
844 | 844 | for ($i = 0; $i < 7; ++$i) { |
845 | - if ($nday == 5 && (($dayofweek - $i) % 7 >= 0) && (1 << (($dayofweek - $i) % 7)) & $weekdays) { |
|
845 | + if ($nday == 5 && (($dayofweek - $i) % 7 >= 0) && (1 << (($dayofweek - $i) % 7))&$weekdays) { |
|
846 | 846 | $day = gmdate("j", $monthbegindow) - $i; |
847 | 847 | break; |
848 | 848 | } |
849 | - if ($nday != 5 && (1 << (($dayofweek + $i) % 7)) & $weekdays) { |
|
849 | + if ($nday != 5 && (1 << (($dayofweek + $i) % 7))&$weekdays) { |
|
850 | 850 | $day = (($nday - 1) * 7) + ($i + 1); |
851 | 851 | break; |
852 | 852 | } |
@@ -885,11 +885,11 @@ discard block |
||
885 | 885 | // Set start on the right day |
886 | 886 | $dayofweek = gmdate("w", $monthbegindow); |
887 | 887 | for ($i = 0; $i < 7; ++$i) { |
888 | - if ($nday == 5 && (($dayofweek - $i) % 7) >= 0 && (1 << (($dayofweek - $i) % 7)) & $weekdays) { |
|
888 | + if ($nday == 5 && (($dayofweek - $i) % 7) >= 0 && (1 << (($dayofweek - $i) % 7))&$weekdays) { |
|
889 | 889 | $day = $i; |
890 | 890 | break; |
891 | 891 | } |
892 | - if ($nday != 5 && (1 << (($dayofweek + $i) % 7)) & $weekdays) { |
|
892 | + if ($nday != 5 && (1 << (($dayofweek + $i) % 7))&$weekdays) { |
|
893 | 893 | $day = ($nday - 1) * 7 + ($i + 1); |
894 | 894 | break; |
895 | 895 | } |
@@ -1133,11 +1133,11 @@ discard block |
||
1133 | 1133 | |
1134 | 1134 | $dayofweek = gmdate("w", $occenddate); |
1135 | 1135 | for ($i = 0; $i < 7; ++$i) { |
1136 | - if ($nday == 5 && (($dayofweek - $i) % 7) >= 0 && (1 << (($dayofweek - $i) % 7)) & $weekdays) { |
|
1136 | + if ($nday == 5 && (($dayofweek - $i) % 7) >= 0 && (1 << (($dayofweek - $i) % 7))&$weekdays) { |
|
1137 | 1137 | $occenddate -= $i * 24 * 60 * 60; |
1138 | 1138 | break; |
1139 | 1139 | } |
1140 | - if ($nday != 5 && (1 << (($dayofweek + $i) % 7)) & $weekdays) { |
|
1140 | + if ($nday != 5 && (1 << (($dayofweek + $i) % 7))&$weekdays) { |
|
1141 | 1141 | $occenddate += ($i + (($nday - 1) * 7)) * 24 * 60 * 60; |
1142 | 1142 | break; |
1143 | 1143 | } |
@@ -1901,7 +1901,7 @@ discard block |
||
1901 | 1901 | } |
1902 | 1902 | elseif ($this->recur['regen']) { |
1903 | 1903 | $year_starttime = $this->gmtime($now); |
1904 | - $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1904 | + $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1905 | 1905 | $now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */); |
1906 | 1906 | |
1907 | 1907 | if ($now <= $dayend) { |
@@ -213,12 +213,12 @@ discard block |
||
213 | 213 | function getCalendarItems($store, $calendar, $viewstart, $viewend, $propsrequested) { |
214 | 214 | $result = []; |
215 | 215 | $properties = getPropIdsFromStrings($store, [ |
216 | - "duedate" => "PT_SYSTIME:PSETID_Appointment:".PidLidAppointmentEndWhole, |
|
217 | - "startdate" => "PT_SYSTIME:PSETID_Appointment:".PidLidAppointmentStartWhole, |
|
218 | - "enddate_recurring" => "PT_SYSTIME:PSETID_Appointment:".PidLidClipEnd, |
|
219 | - "recurring" => "PT_BOOLEAN:PSETID_Appointment:".PidLidRecurring, |
|
220 | - "recurring_data" => "PT_BINARY:PSETID_Appointment:".PidLidAppointmentRecur, |
|
221 | - "timezone_data" => "PT_BINARY:PSETID_Appointment:".PidLidTimeZoneStruct, |
|
216 | + "duedate" => "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentEndWhole, |
|
217 | + "startdate" => "PT_SYSTIME:PSETID_Appointment:" . PidLidAppointmentStartWhole, |
|
218 | + "enddate_recurring" => "PT_SYSTIME:PSETID_Appointment:" . PidLidClipEnd, |
|
219 | + "recurring" => "PT_BOOLEAN:PSETID_Appointment:" . PidLidRecurring, |
|
220 | + "recurring_data" => "PT_BINARY:PSETID_Appointment:" . PidLidAppointmentRecur, |
|
221 | + "timezone_data" => "PT_BINARY:PSETID_Appointment:" . PidLidTimeZoneStruct, |
|
222 | 222 | "label" => "PT_LONG:PSETID_Appointment:0x8214", |
223 | 223 | ]); |
224 | 224 | |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | [ |
233 | 233 | RES_OR, |
234 | 234 | [ |
235 | - [RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd |
|
235 | + [RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd |
|
236 | 236 | [ |
237 | 237 | [ |
238 | 238 | RES_PROPERTY, |
@@ -261,8 +261,8 @@ discard block |
||
261 | 261 | VALUE => true, |
262 | 262 | ], |
263 | 263 | ], |
264 | - ], // EXISTS OR |
|
265 | - ]; // global OR |
|
264 | + ], // EXISTS OR |
|
265 | + ]; // global OR |
|
266 | 266 | |
267 | 267 | // Get requested properties, plus whatever we need |
268 | 268 | $proplist = [PR_ENTRYID, $properties["recurring"], $properties["recurring_data"], $properties["timezone_data"]]; |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | * carried in the IPM.TaskRequest item (although this information seems |
25 | 25 | * redundant due to that information already being available in PR_MESSAGE_CLASS). |
26 | 26 | */ |
27 | - define('tdmtNothing', 0); // Value in IPM.Task items |
|
28 | - define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
29 | - define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
30 | - define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
31 | - define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
32 | - define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
27 | + define('tdmtNothing', 0); // Value in IPM.Task items |
|
28 | + define('tdmtTaskReq', 1); // Assigner -> Assignee |
|
29 | + define('tdmtTaskAcc', 2); // Assignee -> Assigner |
|
30 | + define('tdmtTaskDec', 3); // Assignee -> Assigner |
|
31 | + define('tdmtTaskUpd', 4); // Assignee -> Assigner |
|
32 | + define('tdmtTaskSELF', 5); // Assigner -> Assigner (?) |
|
33 | 33 | |
34 | 34 | /* The TaskHistory is used to show the last action on the task |
35 | 35 | * on both the assigner and the assignee's side. |
@@ -39,22 +39,22 @@ discard block |
||
39 | 39 | * the format 'Accepted by <user> on 01-01-2010 11:00'. |
40 | 40 | */ |
41 | 41 | define('thNone', 0); |
42 | - define('thAccepted', 1); // Set by assignee |
|
43 | - define('thDeclined', 2); // Set by assignee |
|
44 | - define('thUpdated', 3); // Set by assignee |
|
42 | + define('thAccepted', 1); // Set by assignee |
|
43 | + define('thDeclined', 2); // Set by assignee |
|
44 | + define('thUpdated', 3); // Set by assignee |
|
45 | 45 | define('thDueDateChanged', 4); |
46 | - define('thAssigned', 5); // Set by assigner |
|
46 | + define('thAssigned', 5); // Set by assigner |
|
47 | 47 | |
48 | 48 | /* The TaskState value is used to differentiate the version of a task |
49 | 49 | * in the assigner's folder and the version in the |
50 | 50 | * assignee's folder. The buttons shown depend on this and |
51 | 51 | * the 'taskaccepted' boolean (for the assignee) |
52 | 52 | */ |
53 | - define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
54 | - define('tdsOWNNEW', 1); // Not assigned |
|
55 | - define('tdsOWN', 2); // Assignee version |
|
56 | - define('tdsACC', 3); // Assigner version |
|
57 | - define('tdsDEC', 4); // Assigner version, but assignee declined |
|
53 | + define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner |
|
54 | + define('tdsOWNNEW', 1); // Not assigned |
|
55 | + define('tdsOWN', 2); // Assignee version |
|
56 | + define('tdsACC', 3); // Assigner version |
|
57 | + define('tdsDEC', 4); // Assigner version, but assignee declined |
|
58 | 58 | |
59 | 59 | /* The TaskAcceptanceState is used for the assigner to indicate state */ |
60 | 60 | define('olTaskNotDelegated', 0); |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | |
65 | 65 | /* The task ownership indicates the role of the current user relative to the task. */ |
66 | 66 | define('olNewTask', 0); |
67 | - define('olDelegatedTask', 1); // Task has been assigned |
|
68 | - define('olOwnTask', 2); // Task owned |
|
67 | + define('olDelegatedTask', 1); // Task has been assigned |
|
68 | + define('olOwnTask', 2); // Task owned |
|
69 | 69 | |
70 | 70 | /* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */ |
71 | 71 | define('tmrNone', 0); |
72 | - define('tmrSent', 1); // Task has been sent to multiple assignee |
|
73 | - define('tmrReceived', 2); // Task Request received has multiple assignee |
|
72 | + define('tmrSent', 1); // Task has been sent to multiple assignee |
|
73 | + define('tmrReceived', 2); // Task Request received has multiple assignee |
|
74 | 74 | |
75 | 75 | // Task icon index. |
76 | 76 | define('ICON_TASK_ASSIGNEE', 0x00000502); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $properties["taskhistory"] = "PT_LONG:PSETID_Task:0x811a"; |
131 | 131 | $properties["taskmode"] = "PT_LONG:PSETID_Common:0x8518"; |
132 | 132 | $properties["task_goid"] = "PT_BINARY:PSETID_Common:0x8519"; |
133 | - $properties["complete"] = "PT_BOOLEAN:PSETID_Common:".PidLidTaskComplete; |
|
133 | + $properties["complete"] = "PT_BOOLEAN:PSETID_Common:" . PidLidTaskComplete; |
|
134 | 134 | $properties["task_assigned_time"] = "PT_SYSTIME:PSETID_Task:0x8115"; |
135 | 135 | $properties["taskfcreator"] = "PT_BOOLEAN:PSETID_Task:0x0x811e"; |
136 | 136 | $properties["tasklastuser"] = "PT_STRING8:PSETID_Task:0x8122"; |
@@ -139,13 +139,13 @@ discard block |
||
139 | 139 | $properties["task_acceptance_state"] = "PT_LONG:PSETID_Task:0x812a"; |
140 | 140 | $properties["ownership"] = "PT_LONG:PSETID_Task:0x8129"; |
141 | 141 | |
142 | - $properties["complete"] = "PT_BOOLEAN:PSETID_Task:".PidLidTaskComplete; |
|
143 | - $properties["datecompleted"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskDateCompleted; |
|
142 | + $properties["complete"] = "PT_BOOLEAN:PSETID_Task:" . PidLidTaskComplete; |
|
143 | + $properties["datecompleted"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDateCompleted; |
|
144 | 144 | $properties["recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126"; |
145 | - $properties["startdate"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskStartDate; |
|
146 | - $properties["duedate"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskDueDate; |
|
147 | - $properties["status"] = "PT_LONG:PSETID_Task:".PidLidTaskStatus; |
|
148 | - $properties["percent_complete"] = "PT_DOUBLE:PSETID_Task:".PidLidPercentComplete; |
|
145 | + $properties["startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate; |
|
146 | + $properties["duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate; |
|
147 | + $properties["status"] = "PT_LONG:PSETID_Task:" . PidLidTaskStatus; |
|
148 | + $properties["percent_complete"] = "PT_DOUBLE:PSETID_Task:" . PidLidPercentComplete; |
|
149 | 149 | $properties["totalwork"] = "PT_LONG:PSETID_Task:0x8111"; |
150 | 150 | $properties["actualwork"] = "PT_LONG:PSETID_Task:0x8110"; |
151 | 151 | $properties["categories"] = "PT_MV_STRING8:PS_PUBLIC_STRINGS:Keywords"; |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | ], |
313 | 313 | ]; |
314 | 314 | |
315 | - $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
315 | + $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
316 | 316 | $softDeletedItems = mapi_table_queryallrows($table, [PR_ENTRYID], $restriction); |
317 | 317 | if (!empty($softDeletedItems)) { |
318 | 318 | return true; |
@@ -525,12 +525,12 @@ discard block |
||
525 | 525 | // Set properties on Task Request |
526 | 526 | mapi_setprops($this->message, [ |
527 | 527 | $this->props['task_goid'] => $taskid, /* our new task_goid */ |
528 | - $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
529 | - $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
530 | - $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
528 | + $this->props['taskstate'] => tdsACC, /* state for our outgoing request */ |
|
529 | + $this->props['taskmode'] => tdmtNothing, /* we're not sending a change */ |
|
530 | + $this->props['updatecount'] => 2, /* version 2 (no idea) */ |
|
531 | 531 | $this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */ |
532 | 532 | $this->props['ownership'] => olDelegatedTask, /* Task has been assigned */ |
533 | - $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
533 | + $this->props['taskhistory'] => thAssigned, /* Task has been assigned */ |
|
534 | 534 | PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT], |
535 | 535 | PR_ICON_INDEX => ICON_TASK_ASSIGNER, |
536 | 536 | ]); |
@@ -547,10 +547,10 @@ discard block |
||
547 | 547 | |
548 | 548 | // Make it a task request, and put it in sent items after it is sent |
549 | 549 | mapi_setprops($outgoing, [ |
550 | - PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */ |
|
551 | - $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
552 | - $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
553 | - $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
550 | + PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */ |
|
551 | + $this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */ |
|
552 | + $this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */ |
|
553 | + $this->props['updatecount'] => 1, /* version 2 is in the attachment */ |
|
554 | 554 | PR_SUBJECT_PREFIX => $prefix, |
555 | 555 | PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT], |
556 | 556 | ]); |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | PR_ATTACHMENT_HIDDEN => true, |
562 | 562 | PR_DISPLAY_NAME => $messageprops[PR_SUBJECT], ]); |
563 | 563 | |
564 | - $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_MODIFY | MAPI_CREATE); |
|
564 | + $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_MODIFY|MAPI_CREATE); |
|
565 | 565 | |
566 | 566 | mapi_copyto($this->message, [], [], $sub); |
567 | 567 | mapi_setprops($sub, [PR_MESSAGE_CLASS => 'IPM.Task']); |
@@ -903,7 +903,7 @@ discard block |
||
903 | 903 | |
904 | 904 | $attach = mapi_message_createattach($outgoing); |
905 | 905 | mapi_setprops($attach, [PR_ATTACH_METHOD => ATTACH_EMBEDDED_MSG, PR_DISPLAY_NAME => $messageprops[PR_CONVERSATION_TOPIC], PR_ATTACHMENT_HIDDEN => true]); |
906 | - $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_CREATE | MAPI_MODIFY); |
|
906 | + $sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_CREATE|MAPI_MODIFY); |
|
907 | 907 | |
908 | 908 | $message = !$this->isTaskRequest() ? $this->message : $this->getAssociatedTask(false); |
909 | 909 | |
@@ -954,7 +954,7 @@ discard block |
||
954 | 954 | // edit response before sending task response. |
955 | 955 | if ($this->taskCommentsInfo) { |
956 | 956 | $comments = $this->getTaskCommentsInfo(); |
957 | - $stream = mapi_openproperty($outgoing, PR_BODY, IID_IStream, STGM_TRANSACTED, MAPI_CREATE | MAPI_MODIFY); |
|
957 | + $stream = mapi_openproperty($outgoing, PR_BODY, IID_IStream, STGM_TRANSACTED, MAPI_CREATE|MAPI_MODIFY); |
|
958 | 958 | mapi_stream_setsize($stream, strlen($comments)); |
959 | 959 | mapi_stream_write($stream, $comments); |
960 | 960 | mapi_stream_commit($stream); |
@@ -1232,7 +1232,7 @@ discard block |
||
1232 | 1232 | } |
1233 | 1233 | |
1234 | 1234 | foreach ($recips as $recip) { |
1235 | - $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
1235 | + $recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO |
|
1236 | 1236 | mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]); |
1237 | 1237 | } |
1238 | 1238 | |
@@ -1320,13 +1320,13 @@ discard block |
||
1320 | 1320 | $subProperties = []; |
1321 | 1321 | $subProperties["subject"] = PR_SUBJECT; |
1322 | 1322 | $subProperties["convtopic"] = PR_CONVERSATION_TOPIC; |
1323 | - $subProperties["complete"] = "PT_BOOLEAN:PSETID_Task:".PidLidTaskComplete; |
|
1324 | - $subProperties["datecompleted"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskDateCompleted; |
|
1323 | + $subProperties["complete"] = "PT_BOOLEAN:PSETID_Task:" . PidLidTaskComplete; |
|
1324 | + $subProperties["datecompleted"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDateCompleted; |
|
1325 | 1325 | $subProperties["recurring"] = "PT_BOOLEAN:PSETID_Task:0x8126"; |
1326 | - $subProperties["startdate"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskStartDate; |
|
1327 | - $subProperties["duedate"] = "PT_SYSTIME:PSETID_Task:".PidLidTaskDueDate; |
|
1328 | - $subProperties["status"] = "PT_LONG:PSETID_Task:".PidLidTaskStatus; |
|
1329 | - $subProperties["percent_complete"] = "PT_DOUBLE:PSETID_Task:".PidLidPercentComplete; |
|
1326 | + $subProperties["startdate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskStartDate; |
|
1327 | + $subProperties["duedate"] = "PT_SYSTIME:PSETID_Task:" . PidLidTaskDueDate; |
|
1328 | + $subProperties["status"] = "PT_LONG:PSETID_Task:" . PidLidTaskStatus; |
|
1329 | + $subProperties["percent_complete"] = "PT_DOUBLE:PSETID_Task:" . PidLidPercentComplete; |
|
1330 | 1330 | $subProperties["totalwork"] = "PT_LONG:PSETID_Task:0x8111"; |
1331 | 1331 | $subProperties["actualwork"] = "PT_LONG:PSETID_Task:0x8110"; |
1332 | 1332 | $subProperties["categories"] = "PT_MV_STRING8:PS_PUBLIC_STRINGS:Keywords"; |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $properties = [ |
189 | 189 | 'taskstate' => "PT_LONG:PSETID_Task:0x8113", |
190 | 190 | 'taskaccepted' => "PT_BOOLEAN:PSETID_Task:0x8108", |
191 | - 'taskstatus' => "PT_LONG:PSETID_Task:".PidLidTaskStatus, |
|
191 | + 'taskstatus' => "PT_LONG:PSETID_Task:" . PidLidTaskStatus, |
|
192 | 192 | ]; |
193 | 193 | $propertyIds = getPropIdsFromStrings($userStore, $properties); |
194 | 194 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | [ |
205 | 205 | RES_CONTENT, |
206 | 206 | [ |
207 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
207 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
208 | 208 | ULPROPTAG => PR_MESSAGE_CLASS, |
209 | 209 | VALUE => "IPM.Appointment", |
210 | 210 | ], |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | [ |
218 | 218 | RES_CONTENT, |
219 | 219 | [ |
220 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
220 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
221 | 221 | ULPROPTAG => PR_MESSAGE_CLASS, |
222 | 222 | VALUE => "IPM.Activity", |
223 | 223 | ], |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | [ |
231 | 231 | RES_CONTENT, |
232 | 232 | [ |
233 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
233 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
234 | 234 | ULPROPTAG => PR_MESSAGE_CLASS, |
235 | 235 | VALUE => "IPM.StickyNote", |
236 | 236 | ], |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | [ |
423 | 423 | RES_CONTENT, |
424 | 424 | [ |
425 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
425 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
426 | 426 | ULPROPTAG => PR_MESSAGE_CLASS, |
427 | 427 | VALUE => "IPM.Task.", |
428 | 428 | ], |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | [ |
431 | 431 | RES_CONTENT, |
432 | 432 | [ |
433 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
433 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
434 | 434 | ULPROPTAG => PR_MESSAGE_CLASS, |
435 | 435 | VALUE => "IPM.Task", |
436 | 436 | ], |