@@ -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 | ], |
@@ -228,21 +228,21 @@ |
||
| 228 | 228 | [ |
| 229 | 229 | [RES_CONTENT, |
| 230 | 230 | [ |
| 231 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
| 231 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
| 232 | 232 | ULPROPTAG => PR_ATTACH_CONTENT_ID, |
| 233 | 233 | VALUE => [PR_ATTACH_CONTENT_ID => $this->attachCid], |
| 234 | 234 | ], |
| 235 | 235 | ], |
| 236 | 236 | [RES_CONTENT, |
| 237 | 237 | [ |
| 238 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
| 238 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
| 239 | 239 | ULPROPTAG => PR_ATTACH_CONTENT_LOCATION, |
| 240 | 240 | VALUE => [PR_ATTACH_CONTENT_LOCATION => $this->attachCid], |
| 241 | 241 | ], |
| 242 | 242 | ], |
| 243 | 243 | [RES_CONTENT, |
| 244 | 244 | [ |
| 245 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
| 245 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
| 246 | 246 | ULPROPTAG => PR_ATTACH_FILENAME, |
| 247 | 247 | VALUE => [PR_ATTACH_FILENAME => $this->attachCid], |
| 248 | 248 | ], |
@@ -574,7 +574,7 @@ discard block |
||
| 574 | 574 | // mark the message as read if the main message has read flag |
| 575 | 575 | if ($read) { |
| 576 | 576 | $mprops = mapi_getprops($message, [PR_MESSAGE_FLAGS]); |
| 577 | - mapi_setprops($message, [PR_MESSAGE_FLAGS => $mprops[PR_MESSAGE_FLAGS] | MSGFLAG_READ]); |
|
| 577 | + mapi_setprops($message, [PR_MESSAGE_FLAGS => $mprops[PR_MESSAGE_FLAGS]|MSGFLAG_READ]); |
|
| 578 | 578 | } |
| 579 | 579 | } |
| 580 | 580 | |
@@ -716,7 +716,7 @@ discard block |
||
| 716 | 716 | $rootFolder = getSubTree($store); |
| 717 | 717 | } |
| 718 | 718 | |
| 719 | - $hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
| 719 | + $hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
| 720 | 720 | $rows = mapi_table_queryallrows($hierarchy, $props); |
| 721 | 721 | |
| 722 | 722 | // Append the Inbox folder itself. |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | // Display name of user from GAB and contacts. |
| 202 | 202 | [ |
| 203 | 203 | RES_CONTENT, |
| 204 | - [FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
| 204 | + [FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
| 205 | 205 | ULPROPTAG => PR_DISPLAY_NAME, |
| 206 | 206 | VALUE => $searchstring, |
| 207 | 207 | ], |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | // fileas value of user from GAB. |
| 210 | 210 | [ |
| 211 | 211 | RES_CONTENT, |
| 212 | - [FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
| 212 | + [FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
| 213 | 213 | ULPROPTAG => PR_ACCOUNT, |
| 214 | 214 | VALUE => $searchstring, |
| 215 | 215 | ], |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | // smtp_address of user from GAB. |
| 218 | 218 | [ |
| 219 | 219 | RES_CONTENT, |
| 220 | - [FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
| 220 | + [FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
| 221 | 221 | ULPROPTAG => PR_SMTP_ADDRESS, |
| 222 | 222 | VALUE => $searchstring, |
| 223 | 223 | ], |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | // email_address of user from GAB and contacts. |
| 226 | 226 | [ |
| 227 | 227 | RES_CONTENT, |
| 228 | - [FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
| 228 | + [FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
| 229 | 229 | ULPROPTAG => PR_EMAIL_ADDRESS, |
| 230 | 230 | VALUE => $searchstring, |
| 231 | 231 | ], |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | // department of user from GAB. |
| 234 | 234 | [ |
| 235 | 235 | RES_CONTENT, |
| 236 | - [FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
| 236 | + [FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
| 237 | 237 | ULPROPTAG => PR_DEPARTMENT_NAME, |
| 238 | 238 | VALUE => $searchstring, |
| 239 | 239 | ], |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | // fileas of user from Contacts. |
| 242 | 242 | [ |
| 243 | 243 | RES_CONTENT, |
| 244 | - [FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE, |
|
| 244 | + [FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE, |
|
| 245 | 245 | ULPROPTAG => PR_ORIGINAL_DISPLAY_NAME, |
| 246 | 246 | VALUE => $searchstring, |
| 247 | 247 | ], |
@@ -617,7 +617,7 @@ discard block |
||
| 617 | 617 | [ |
| 618 | 618 | RES_CONTENT, |
| 619 | 619 | [ |
| 620 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
| 620 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
| 621 | 621 | ULPROPTAG => PR_ACCOUNT, |
| 622 | 622 | VALUE => [ |
| 623 | 623 | PR_ACCOUNT => 'SYSTEM', |
@@ -761,7 +761,7 @@ discard block |
||
| 761 | 761 | RELOP => RELOP_EQ, |
| 762 | 762 | ULPROPTAG => PR_DISPLAY_TYPE_EX, |
| 763 | 763 | VALUE => [ |
| 764 | - PR_DISPLAY_TYPE_EX => (DT_SEC_DISTLIST | DTE_FLAG_ACL_CAPABLE), |
|
| 764 | + PR_DISPLAY_TYPE_EX => (DT_SEC_DISTLIST|DTE_FLAG_ACL_CAPABLE), |
|
| 765 | 765 | ], |
| 766 | 766 | ], |
| 767 | 767 | ] |
@@ -806,7 +806,7 @@ discard block |
||
| 806 | 806 | [ |
| 807 | 807 | RES_CONTENT, |
| 808 | 808 | [ |
| 809 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
| 809 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
| 810 | 810 | ULPROPTAG => PR_ACCOUNT, |
| 811 | 811 | VALUE => [ |
| 812 | 812 | PR_ACCOUNT => 'Everyone', |
@@ -850,7 +850,7 @@ discard block |
||
| 850 | 850 | ], |
| 851 | 851 | [ |
| 852 | 852 | RES_OR, |
| 853 | - $tempRestrictions, // all group restrictions |
|
| 853 | + $tempRestrictions, // all group restrictions |
|
| 854 | 854 | ], |
| 855 | 855 | ], |
| 856 | 856 | ], |
@@ -923,7 +923,7 @@ discard block |
||
| 923 | 923 | public function getAddressbookHierarchy($hideContacts = false) { |
| 924 | 924 | $ab = $GLOBALS["mapisession"]->getAddressbook(false, true); |
| 925 | 925 | $dir = mapi_ab_openentry($ab); |
| 926 | - $table = mapi_folder_gethierarchytable($dir, MAPI_DEFERRED_ERRORS | CONVENIENT_DEPTH); |
|
| 926 | + $table = mapi_folder_gethierarchytable($dir, MAPI_DEFERRED_ERRORS|CONVENIENT_DEPTH); |
|
| 927 | 927 | |
| 928 | 928 | if ($hideContacts) { |
| 929 | 929 | // Restrict on the addressbook provider GUID if the contact folders need to be hidden |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | // delete all folders. |
| 100 | 100 | if (isset($action["itemType"]) && $action["itemType"] == "folder") { |
| 101 | - $table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
| 101 | + $table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
| 102 | 102 | $items = mapi_table_queryallrows($table, [PR_ENTRYID]); |
| 103 | 103 | $restoreItems = []; |
| 104 | 104 | foreach ($items as $item) { |
@@ -106,12 +106,12 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | foreach ($restoreItems as $restoreItem) { |
| 109 | - mapi_folder_deletefolder($folder, $restoreItem, DEL_FOLDERS | DEL_MESSAGES | DELETE_HARD_DELETE); |
|
| 109 | + mapi_folder_deletefolder($folder, $restoreItem, DEL_FOLDERS|DEL_MESSAGES|DELETE_HARD_DELETE); |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | else { |
| 113 | 113 | // delete all messages |
| 114 | - $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
| 114 | + $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
| 115 | 115 | $items = mapi_table_queryallrows($table, [PR_ENTRYID]); |
| 116 | 116 | |
| 117 | 117 | $restoreItems = []; |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * @throws MAPIException |
| 136 | 136 | */ |
| 137 | 137 | public function restoreAllFolders($store, $folder) { |
| 138 | - $table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
| 138 | + $table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
| 139 | 139 | $items = mapi_table_queryallrows($table, [PR_ENTRYID]); |
| 140 | 140 | $restoreItems = []; |
| 141 | 141 | foreach ($items as $item) { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | * @param {object} $folder the content of this folder is going to restored |
| 176 | 176 | */ |
| 177 | 177 | public function restoreAllItems($folder) { |
| 178 | - $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
| 178 | + $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
| 179 | 179 | $items = mapi_table_queryallrows($table, [PR_ENTRYID]); |
| 180 | 180 | |
| 181 | 181 | $restoreItems = []; |
@@ -251,10 +251,10 @@ discard block |
||
| 251 | 251 | $folder = mapi_msgstore_openentry($store, $entryid); |
| 252 | 252 | |
| 253 | 253 | if (isset($action["itemType"]) && $action["itemType"] == "folder") { |
| 254 | - $table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
| 254 | + $table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
| 255 | 255 | } |
| 256 | 256 | else { |
| 257 | - $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES); |
|
| 257 | + $table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES); |
|
| 258 | 258 | } |
| 259 | 259 | |
| 260 | 260 | $data = $GLOBALS["operations"]->getTableContent($table, $this->properties, $this->sort, $this->start, $limit, $this->restriction); |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | $sfolder = mapi_msgstore_openentry($store, $parententryid); |
| 334 | 334 | |
| 335 | 335 | for ($index = 0, $len = count($folders); $index < $len; ++$index) { |
| 336 | - mapi_folder_deletefolder($sfolder, hex2bin($folders[$index]['entryid']), DEL_FOLDERS | DEL_MESSAGES | DELETE_HARD_DELETE); |
|
| 336 | + mapi_folder_deletefolder($sfolder, hex2bin($folders[$index]['entryid']), DEL_FOLDERS|DEL_MESSAGES|DELETE_HARD_DELETE); |
|
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | $this->sendFeedback(true); |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | * folder gets changed and we don't have notification system to get new entryid, so to notify client about changes we need to |
| 389 | 389 | * notify all subfolders of parent folder where we have restored the folder |
| 390 | 390 | */ |
| 391 | - $hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
| 391 | + $hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
| 392 | 392 | mapi_table_sort($hierarchyTable, [PR_DISPLAY_NAME => TABLE_SORT_ASCEND], TBL_BATCH); |
| 393 | 393 | |
| 394 | 394 | $subfolders = mapi_table_queryallrows($hierarchyTable, [PR_ENTRYID]); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @return bool true on success or false on failure |
| 109 | 109 | */ |
| 110 | 110 | public function save($store, $parententryid, $entryid, $action) { |
| 111 | - $properiesToDelete = []; // create an array of properties which should be deleted |
|
| 111 | + $properiesToDelete = []; // create an array of properties which should be deleted |
|
| 112 | 112 | // this array is passed to $GLOBALS['operations']->saveMessage() function |
| 113 | 113 | |
| 114 | 114 | if (!$store && !$parententryid) { |
@@ -449,7 +449,7 @@ discard block |
||
| 449 | 449 | |
| 450 | 450 | // UTC time |
| 451 | 451 | $startDateUTC = $actionProps[$type]; |
| 452 | - $dueDateUTC = $actionProps[$type] + (24 * 60 * 60); // ONE DAY is added to set duedate of item. |
|
| 452 | + $dueDateUTC = $actionProps[$type] + (24 * 60 * 60); // ONE DAY is added to set duedate of item. |
|
| 453 | 453 | |
| 454 | 454 | // get local time from UTC time |
| 455 | 455 | $recur = new Recurrence($store, []); |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | 'busystatus' => fbFree, |
| 476 | 476 | 'meeting' => olNonMeeting, |
| 477 | 477 | 'object_type' => MAPI_MESSAGE, |
| 478 | - 'message_flags' => MSGFLAG_READ | MSGFLAG_UNSENT, |
|
| 478 | + 'message_flags' => MSGFLAG_READ|MSGFLAG_UNSENT, |
|
| 479 | 479 | 'subject' => $subject, |
| 480 | 480 | |
| 481 | 481 | 'startdate' => $startDateUTC, |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | throw new MAPIException(null, MAPI_E_NO_ACCESS); |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | - $noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function ($item) { |
|
| 319 | + $noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function($item) { |
|
| 320 | 320 | return $item['props']['access'] === 0; |
| 321 | 321 | }); |
| 322 | 322 | if (count($noPermissionFolders) >= $folders) { |
@@ -685,7 +685,7 @@ discard block |
||
| 685 | 685 | if (isset($action["permissions"])) { |
| 686 | 686 | $this->setFolderPermissions($folder, $action["permissions"]); |
| 687 | 687 | if (isset($action['props']['recursive'])) { |
| 688 | - $hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
| 688 | + $hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
| 689 | 689 | $subfolders = mapi_table_queryallrows($hierarchyTable, [PR_ENTRYID]); |
| 690 | 690 | foreach ($subfolders as $subfolder) { |
| 691 | 691 | $folderObject = mapi_msgstore_openentry($store, $subfolder[PR_ENTRYID]); |
@@ -757,7 +757,7 @@ discard block |
||
| 757 | 757 | foreach ($curAcls as $aclIndex => &$curAcl) { |
| 758 | 758 | if ($curAcl['userid'] === $userid) { |
| 759 | 759 | $curAcl['rights'] = ecRightsNone; |
| 760 | - $curAcl['state'] = RIGHT_DELETED | RIGHT_AUTOUPDATE_DENIED; |
|
| 760 | + $curAcl['state'] = RIGHT_DELETED|RIGHT_AUTOUPDATE_DENIED; |
|
| 761 | 761 | } |
| 762 | 762 | } |
| 763 | 763 | unset($curAcl); |
@@ -784,7 +784,7 @@ discard block |
||
| 784 | 784 | foreach ($curAcls as $aclIndex => &$curAcl) { |
| 785 | 785 | if ($curAcl['userid'] === $userid) { |
| 786 | 786 | $curAcl['rights'] = $modAcl['rights']; |
| 787 | - $curAcl['state'] = RIGHT_MODIFY | RIGHT_AUTOUPDATE_DENIED; |
|
| 787 | + $curAcl['state'] = RIGHT_MODIFY|RIGHT_AUTOUPDATE_DENIED; |
|
| 788 | 788 | } |
| 789 | 789 | } |
| 790 | 790 | } |
@@ -800,7 +800,7 @@ discard block |
||
| 800 | 800 | 'type' => ACCESS_TYPE_GRANT, |
| 801 | 801 | 'userid' => hex2bin($addAcl['entryid']), |
| 802 | 802 | 'rights' => $addAcl['rights'], |
| 803 | - 'state' => RIGHT_NEW | RIGHT_AUTOUPDATE_DENIED, |
|
| 803 | + 'state' => RIGHT_NEW|RIGHT_AUTOUPDATE_DENIED, |
|
| 804 | 804 | ]; |
| 805 | 805 | } |
| 806 | 806 | unset($addAcl); |
@@ -1032,7 +1032,7 @@ discard block |
||
| 1032 | 1032 | if (!isset($action["message_action"]["keepSearchFolder"])) { |
| 1033 | 1033 | $finderFolder = mapi_msgstore_openentry($store, $parententryid); |
| 1034 | 1034 | |
| 1035 | - return mapi_folder_deletefolder($finderFolder, $entryid, DEL_FOLDERS | DEL_MESSAGES | DELETE_HARD_DELETE); |
|
| 1035 | + return mapi_folder_deletefolder($finderFolder, $entryid, DEL_FOLDERS|DEL_MESSAGES|DELETE_HARD_DELETE); |
|
| 1036 | 1036 | } |
| 1037 | 1037 | // Rename search folder to default search folder name otherwise, |
| 1038 | 1038 | // It will not be picked up by our search folder cleanup logic. |
@@ -1258,7 +1258,7 @@ discard block |
||
| 1258 | 1258 | |
| 1259 | 1259 | // Update subfolders of copy/move folder |
| 1260 | 1260 | $folder = mapi_msgstore_openentry($deststore, $destfolderentryid); |
| 1261 | - $hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS); |
|
| 1261 | + $hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS); |
|
| 1262 | 1262 | mapi_table_sort($hierarchyTable, [PR_DISPLAY_NAME => TABLE_SORT_ASCEND], TBL_BATCH); |
| 1263 | 1263 | |
| 1264 | 1264 | /** |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | public function getRestriction() { |
| 123 | 123 | return [RES_CONTENT, |
| 124 | 124 | [ |
| 125 | - FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE, |
|
| 125 | + FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE, |
|
| 126 | 126 | ULPROPTAG => PR_RULE_PROVIDER, |
| 127 | 127 | VALUE => [ |
| 128 | 128 | PR_RULE_PROVIDER => 'RuleOrganizer', |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | $associatedTable, |
| 279 | 279 | [RES_CONTENT, |
| 280 | 280 | [ |
| 281 | - FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE, |
|
| 281 | + FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE, |
|
| 282 | 282 | ULPROPTAG => PR_MESSAGE_CLASS, |
| 283 | 283 | VALUE => [ |
| 284 | 284 | PR_MESSAGE_CLASS => "IPM.RuleOrganizer", |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | // Write new recipient history to property |
| 100 | 100 | $l_sNewRecipientHistoryJSON = json_encode($recipient_history); |
| 101 | 101 | |
| 102 | - $stream = mapi_openproperty($GLOBALS["mapisession"]->getDefaultMessageStore(), PR_EC_RECIPIENT_HISTORY_JSON, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY); |
|
| 102 | + $stream = mapi_openproperty($GLOBALS["mapisession"]->getDefaultMessageStore(), PR_EC_RECIPIENT_HISTORY_JSON, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY); |
|
| 103 | 103 | mapi_stream_setsize($stream, strlen($l_sNewRecipientHistoryJSON)); |
| 104 | 104 | mapi_stream_write($stream, $l_sNewRecipientHistoryJSON); |
| 105 | 105 | mapi_stream_commit($stream); |
@@ -122,8 +122,8 @@ discard block |
||
| 122 | 122 | if (!empty($action["query"]) && !empty($recipient_history) && !empty($recipient_history['recipients'])) { |
| 123 | 123 | // Setup result array with match levels |
| 124 | 124 | $l_aResult = [ |
| 125 | - 0 => [], // Matches on whole string |
|
| 126 | - 1 => [], // Matches on part of string |
|
| 125 | + 0 => [], // Matches on whole string |
|
| 126 | + 1 => [], // Matches on part of string |
|
| 127 | 127 | ]; |
| 128 | 128 | |
| 129 | 129 | // Loop through all the recipients |