Passed
Branch master (ff9d34)
by Mike
09:14
created
lib/core/redisconnection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      *
35 35
      * @access public
36 36
      */
37
-    public function __construct($host=REDIS_HOST, $port=REDIS_PORT, $auth=REDIS_AUTH) {
37
+    public function __construct($host = REDIS_HOST, $port = REDIS_PORT, $auth = REDIS_AUTH) {
38 38
         $this->redisObj = new Redis();
39 39
         // Opening a redis connection
40 40
         $this->redisObj->connect($host, $port);
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
         try {
48 48
             return $this->redisObj->get($key);
49 49
         }
50
-        catch(Exception $e) {
50
+        catch (Exception $e) {
51 51
             ZLog::Write(LOGLEVEL_ERROR, sprintf("%s->getKey(): %s", get_class($this), $e->getMessage()));
52 52
         }
53 53
     }
54
-    function setKey($key, $value, $ttl=-1) {
54
+    function setKey($key, $value, $ttl = -1) {
55 55
         try {
56 56
             if ($ttl > 0) {
57 57
                 return $this->redisObj->setEx($key, $ttl, $value);
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 return $this->redisObj->set($key, $value);
61 61
             }
62 62
         }
63
-        catch(Exception $e) {
63
+        catch (Exception $e) {
64 64
             ZLog::Write(LOGLEVEL_ERROR, sprintf("%s->setKey(): %s", get_class($this), $e->getMessage()));
65 65
         }
66 66
     }
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         try {
69 69
             return $this->redisObj->del($key);
70 70
         }
71
-        catch(Exception $e) {
71
+        catch (Exception $e) {
72 72
             ZLog::Write(LOGLEVEL_ERROR, sprintf("%s->delKey(): %s", get_class($this), $e->getMessage()));
73 73
         }
74 74
     }
Please login to merge, or discard this patch.
lib/core/stateobject.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     public function __set($name, $value) {
46 46
         $lname = strtolower($name);
47 47
         if (isset($this->data[$lname]) &&
48
-                ( (is_scalar($value) && !is_array($value) && $this->data[$lname] === $value) ||
48
+                ((is_scalar($value) && !is_array($value) && $this->data[$lname] === $value) ||
49 49
                   (is_array($value) && is_array($this->data[$lname]) && $this->data[$lname] === $value)
50 50
                 ))
51 51
             return false;
@@ -107,19 +107,19 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function __call($name, $arguments) {
109 109
         $name = strtolower($name);
110
-        $operator = substr($name, 0,3);
111
-        $var = substr($name,3);
110
+        $operator = substr($name, 0, 3);
111
+        $var = substr($name, 3);
112 112
 
113 113
         if ($name == "postunserialize") {
114 114
             return $this->postUnserialize();
115 115
         }
116 116
 
117
-        if ($operator == "set" && count($arguments) == 1){
117
+        if ($operator == "set" && count($arguments) == 1) {
118 118
             $this->$var = $arguments[0];
119 119
             return true;
120 120
         }
121 121
 
122
-        if ($operator == "set" && count($arguments) == 2 && $arguments[1] === false){
122
+        if ($operator == "set" && count($arguments) == 2 && $arguments[1] === false) {
123 123
             $this->data[$var] = $arguments[0];
124 124
             return true;
125 125
         }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @return void
196 196
      */
197 197
     public function jsonDeserialize($stdObj) {
198
-        foreach($stdObj->data as $prop => $val) {
198
+        foreach ($stdObj->data as $prop => $val) {
199 199
             if (is_object($val) && isset($val->gsSyncStateClass)) {
200 200
                 ZLog::Write(LOGLEVEL_DEBUG, sprintf("StateObject->jsonDeserialize(): top class '%s'", $val->gsSyncStateClass));
201 201
                 $this->data[$prop] = new $val->gsSyncStateClass;
Please login to merge, or discard this patch.
lib/core/bodypartpreference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 class BodyPartPreference extends StateObject {
11
-    protected $unsetdata = array(   'truncationsize' => false,
11
+    protected $unsetdata = array('truncationsize' => false,
12 12
                                     'allornone' => false,
13 13
                                     'preview' => false,
14 14
                                 );
Please login to merge, or discard this patch.
lib/core/statemanager.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * @return string
146 146
      */
147 147
     function GetNewSyncKey($synckey) {
148
-        if(!isset($synckey) || $synckey == "0" || $synckey == false) {
148
+        if (!isset($synckey) || $synckey == "0" || $synckey == false) {
149 149
             $this->uuid = $this->getNewUuid();
150 150
             $this->newStateCounter = 1;
151 151
         }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public function GetSyncState($synckey, $forceHierarchyLoading = false) {
182 182
         // No sync state for sync key '0'
183
-        if($synckey == "0") {
183
+        if ($synckey == "0") {
184 184
             $this->oldStateCounter = 0;
185 185
             return "";
186 186
         }
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             // remove states but no need to notify device
356 356
             self::UnLinkState($device, $folderid, false);
357 357
 
358
-            ZLog::Write(LOGLEVEL_DEBUG, sprintf("StateManager::linkState(#ASDevice, '%s','%s'): linked to uuid '%s'.", $newUuid, (($folderid === false)?'HierarchyCache':$folderid), $newUuid));
358
+            ZLog::Write(LOGLEVEL_DEBUG, sprintf("StateManager::linkState(#ASDevice, '%s','%s'): linked to uuid '%s'.", $newUuid, (($folderid === false) ? 'HierarchyCache' : $folderid), $newUuid));
359 359
             return $device->SetFolderUUID($newUuid, $folderid);
360 360
         }
361 361
         return true;
@@ -384,16 +384,16 @@  discard block
 block discarded – undo
384 384
 
385 385
         if ($savedUuid) {
386 386
             ZLog::Write(LOGLEVEL_DEBUG, sprintf("StateManager::UnLinkState('%s'): saved state '%s' will be deleted.", $folderid, $savedUuid));
387
-            ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::DEFTYPE, $savedUuid, self::FIXEDHIERARCHYCOUNTER *2);
387
+            ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::DEFTYPE, $savedUuid, self::FIXEDHIERARCHYCOUNTER * 2);
388 388
             ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::FOLDERDATA, $savedUuid, false, true); // CPO
389
-            ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::FAILSAVE, $savedUuid, self::FIXEDHIERARCHYCOUNTER *2);
390
-            ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::BACKENDSTORAGE, $savedUuid, self::FIXEDHIERARCHYCOUNTER *2);
389
+            ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::FAILSAVE, $savedUuid, self::FIXEDHIERARCHYCOUNTER * 2);
390
+            ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::BACKENDSTORAGE, $savedUuid, self::FIXEDHIERARCHYCOUNTER * 2);
391 391
 
392 392
             // remove all messages which could not be synched before
393 393
             $device->RemoveIgnoredMessage($folderid, false);
394 394
 
395 395
             if ($folderid === false && $savedUuid !== false)
396
-                ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::HIERARCHY, $savedUuid, self::FIXEDHIERARCHYCOUNTER *2);
396
+                ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::HIERARCHY, $savedUuid, self::FIXEDHIERARCHYCOUNTER * 2);
397 397
         }
398 398
         // delete this id from the uuid cache
399 399
         if ($removeFromDevice)
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      */
414 414
     static public function ParseStateKey($synckey) {
415 415
         $matches = array();
416
-        if(!preg_match('/^\{([0-9A-Za-z-]+)\}([0-9]+)$/', $synckey, $matches))
416
+        if (!preg_match('/^\{([0-9A-Za-z-]+)\}([0-9]+)$/', $synckey, $matches))
417 417
             throw new StateInvalidException(sprintf("SyncKey '%s' is invalid", $synckey));
418 418
 
419 419
         return array($matches[1], (int)$matches[2]);
@@ -430,10 +430,10 @@  discard block
 block discarded – undo
430 430
      * @throws StateInvalidException
431 431
      */
432 432
     static public function BuildStateKey($uuid, $counter) {
433
-        if(!preg_match('/^([0-9A-Za-z-]+)$/', $uuid, $matches))
433
+        if (!preg_match('/^([0-9A-Za-z-]+)$/', $uuid, $matches))
434 434
             throw new StateInvalidException(sprintf("UUID '%s' is invalid", $uuid));
435 435
 
436
-        return "{" . $uuid . "}" . $counter;
436
+        return "{".$uuid."}".$counter;
437 437
     }
438 438
 
439 439
 
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
             throw new StateNotFoundException("No hierarchy UUID linked to device. Requesting folder resync.");
464 464
         }
465 465
 
466
-        $hierarchydata = $this->statemachine->GetState($this->device->GetDeviceId(), IStateMachine::HIERARCHY, $this->uuid , $this->oldStateCounter, $this->deleteOldStates);
466
+        $hierarchydata = $this->statemachine->GetState($this->device->GetDeviceId(), IStateMachine::HIERARCHY, $this->uuid, $this->oldStateCounter, $this->deleteOldStates);
467 467
         $this->device->SetHierarchyCache($hierarchydata);
468 468
         return true;
469 469
     }
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
             return false;
484 484
 
485 485
         // link the hierarchy cache again, if the UUID does not match the UUID saved in the devicedata
486
-        if (($this->uuid != $this->device->GetFolderUUID() || $forceSaving) )
486
+        if (($this->uuid != $this->device->GetFolderUUID() || $forceSaving))
487 487
             self::LinkState($this->device, $this->uuid);
488 488
 
489 489
         // check all folders and deleted folders to update data of ASDevice and delete old states
@@ -507,9 +507,9 @@  discard block
 block discarded – undo
507 507
      */
508 508
     private function getNewUuid() {
509 509
         return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
510
-                    mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),
511
-                    mt_rand( 0, 0x0fff ) | 0x4000,
512
-                    mt_rand( 0, 0x3fff ) | 0x8000,
513
-                    mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ) );
510
+                    mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff),
511
+                    mt_rand(0, 0x0fff)|0x4000,
512
+                    mt_rand(0, 0x3fff)|0x8000,
513
+                    mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff));
514 514
     }
515 515
 }
Please login to merge, or discard this patch.
lib/core/asdevice.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     public function Initialize($devid, $devicetype, $getuser, $useragent) {
61 61
         $this->deviceid = $devid;
62 62
         $this->devicetype = $devicetype;
63
-        list ($this->deviceuser, $this->domain) =  Utils::SplitDomainUser($getuser);
63
+        list ($this->deviceuser, $this->domain) = Utils::SplitDomainUser($getuser);
64 64
         $this->useragent = $useragent;
65 65
     }
66 66
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             $a = $this->useragentHistory;
158 158
 
159 159
             // only add if this agent was not seen before
160
-            if (! in_array(array(true, $this->useragent), $a)) {
160
+            if (!in_array(array(true, $this->useragent), $a)) {
161 161
                 $a[] = array(time(), $this->useragent);
162 162
                 $this->useragentHistory = $a;
163 163
                 $this->changed = true;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     public function AddIgnoredMessage($ignoredMessage) {
179 179
         // we should have all previousily ignored messages in an id array
180 180
         if (count($this->ignoredMessages) != count($this->ignoredMessageIds)) {
181
-            foreach($this->ignoredMessages as $oldMessage) {
181
+            foreach ($this->ignoredMessages as $oldMessage) {
182 182
                 if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid]))
183 183
                     $this->ignoredMessageIds[$oldMessage->data->folderid] = array();
184 184
                 $this->ignoredMessageIds[$oldMessage->data->folderid][] = $oldMessage->id;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     public function RemoveIgnoredMessage($folderid, $id) {
224 224
         // we should have all previousily ignored messages in an id array
225 225
         if (count($this->ignoredMessages) != count($this->ignoredMessageIds)) {
226
-            foreach($this->ignoredMessages as $oldMessage) {
226
+            foreach ($this->ignoredMessages as $oldMessage) {
227 227
                 if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid]))
228 228
                     $this->ignoredMessageIds[$oldMessage->data->folderid] = array();
229 229
                 $this->ignoredMessageIds[$oldMessage->data->folderid][] = $oldMessage->data->id;
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
     public function HasIgnoredMessage($folderid, $id) {
274 274
         // we should have all previousily ignored messages in an id array
275 275
         if (count($this->ignoredMessages) != count($this->ignoredMessageIds)) {
276
-            foreach($this->ignoredMessages as $oldMessage) {
276
+            foreach ($this->ignoredMessages as $oldMessage) {
277 277
                 if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid]))
278 278
                     $this->ignoredMessageIds[$oldMessage->data->folderid] = array();
279 279
                 $this->ignoredMessageIds[$oldMessage->data->folderid][] = $oldMessage->data->id;
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         if (!isset($this->hierarchyCache))
346 346
             $this->SetHierarchyCache();
347 347
 
348
-        ZLog::Write(LOGLEVEL_DEBUG, "ASDevice->GetHierarchyCache(): ". $this->hierarchyCache->GetStat());
348
+        ZLog::Write(LOGLEVEL_DEBUG, "ASDevice->GetHierarchyCache(): ".$this->hierarchyCache->GetStat());
349 349
         return $this->hierarchyCache;
350 350
     }
351 351
 
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         if (!isset($contentData[$folderid])) {
457 457
             $contentData[$folderid] = new stdClass();
458 458
         }
459
-        if (!isset($contentData[$folderid]->{self::FOLDERTYPE}) || $contentData[$folderid]->{self::FOLDERTYPE} != $foldertype ) {
459
+        if (!isset($contentData[$folderid]->{self::FOLDERTYPE}) || $contentData[$folderid]->{self::FOLDERTYPE} != $foldertype) {
460 460
             $contentData[$folderid]->{self::FOLDERTYPE} = $foldertype;
461 461
             $this->contentData = $contentData;
462 462
             $this->changed = true;
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
      * @return boolean      true if the type was set or updated
491 491
      */
492 492
     public function SetFolderBackendId($folderid, $backendfolderid) {
493
-        if($folderid === $backendfolderid || $folderid === false || $backendfolderid === false) {
493
+        if ($folderid === $backendfolderid || $folderid === false || $backendfolderid === false) {
494 494
             return false;
495 495
         }
496 496
 
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
         if (!isset($contentData[$folderid])) {
499 499
             $contentData[$folderid] = new stdClass();
500 500
         }
501
-        if (!isset($contentData[$folderid]->{self::FOLDERBACKENDID}) || $contentData[$folderid]->{self::FOLDERBACKENDID} != $backendfolderid ) {
501
+        if (!isset($contentData[$folderid]->{self::FOLDERBACKENDID}) || $contentData[$folderid]->{self::FOLDERBACKENDID} != $backendfolderid) {
502 502
             $contentData[$folderid]->{self::FOLDERBACKENDID} = $backendfolderid;
503 503
             $this->contentData = $contentData;
504 504
             $this->changed = true;
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
     public function GetSupportedFields($folderid) {
611 611
         if (isset($this->contentData) && isset($this->contentData[$folderid]) &&
612 612
             isset($this->contentData[$folderid]->{self::FOLDERUUID}) && $this->contentData[$folderid]->{self::FOLDERUUID} !== false &&
613
-            isset($this->contentData[$folderid]->{self::FOLDERSUPPORTEDFIELDS}) )
613
+            isset($this->contentData[$folderid]->{self::FOLDERSUPPORTEDFIELDS}))
614 614
 
615 615
             return $this->contentData[$folderid]->{self::FOLDERSUPPORTEDFIELDS};
616 616
 
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
         if ($checkDups) {
777 777
             // in order to check for the parent-ids we need a shortid
778 778
             $parentShortId = $this->GetFolderIdForBackendId($parentid, false, null, null);
779
-            foreach($this->GetHierarchyCache()->ExportFolders() as $syncedFolderid => $folder) {
779
+            foreach ($this->GetHierarchyCache()->ExportFolders() as $syncedFolderid => $folder) {
780 780
                 if ($syncedFolderid === $folderid || $folder->BackendId === $folderid) {
781 781
                     ZLog::Write(LOGLEVEL_ERROR, sprintf("ASDevice->AddAdditionalFolder(): folder can not be added because there is already a folder with the same folder id synchronized: '%s'", $folderid));
782 782
                     return false;
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
 
838 838
         // check if a folder with the new name is already in the list
839 839
         foreach ($this->additionalfolders as $existingFolderid => $folder) {
840
-            if ($folder['name'] == $name &&  $folderid !== $existingFolderid) {
840
+            if ($folder['name'] == $name && $folderid !== $existingFolderid) {
841 841
                 ZLog::Write(LOGLEVEL_ERROR, sprintf("ASDevice->EditAdditionalFolder(): folder can not be edited because there is already an additional folder with the same name: '%s'", $name));
842 842
                 return false;
843 843
             }
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
         if ($checkDups) {
848 848
             // in order to check for the parent-ids we need a shortid
849 849
             $parentShortId = $this->GetFolderIdForBackendId($parentid, false, null, null);
850
-            foreach($this->GetHierarchyCache()->ExportFolders() as $syncedFolderid => $folder) {
850
+            foreach ($this->GetHierarchyCache()->ExportFolders() as $syncedFolderid => $folder) {
851 851
                 // $folder is a SyncFolder object here
852 852
                 if ($folder->displayname == $name && $folderid !== $folder->BackendId && $folderid !== $syncedFolderid && ($folder->parentid == $parentid || $folder->parentid == $parentShortId)) {
853 853
                     ZLog::Write(LOGLEVEL_ERROR, sprintf("ASDevice->EditAdditionalFolder(): folder can not be edited because there is already a folder with the same name synchronized: '%s'", $folderid));
@@ -916,7 +916,7 @@  discard block
 block discarded – undo
916 916
         // remove all folders already shared for this store
917 917
         $newAF = array();
918 918
         $noDupsCheck = array();
919
-        foreach($this->additionalfolders as $keepFolder) {
919
+        foreach ($this->additionalfolders as $keepFolder) {
920 920
             if ($keepFolder['store'] !== $store) {
921 921
                 $newAF[$keepFolder['folderid']] = $keepFolder;
922 922
             }
@@ -933,7 +933,7 @@  discard block
 block discarded – undo
933 933
         $toOrder = array();
934 934
         $ordered = array();
935 935
         $validTypes = array(SYNC_FOLDER_TYPE_USER_CONTACT, SYNC_FOLDER_TYPE_USER_APPOINTMENT, SYNC_FOLDER_TYPE_USER_TASK, SYNC_FOLDER_TYPE_USER_MAIL, SYNC_FOLDER_TYPE_USER_NOTE, SYNC_FOLDER_TYPE_USER_JOURNAL, SYNC_FOLDER_TYPE_OTHER);
936
-        foreach($folders as $f) {
936
+        foreach ($folders as $f) {
937 937
             // fail early
938 938
             if (!$f['folderid'] || !$f['name']) {
939 939
                 ZLog::Write(LOGLEVEL_ERROR, sprintf("ASDevice->SetAdditionalFolderList(): No valid folderid ('%s') or name ('%s') sent. Aborting. ", $f['folderid'], $f['name']));
@@ -954,14 +954,14 @@  discard block
 block discarded – undo
954 954
         // if there are folders that are not be positioned in the tree, we can't add them!
955 955
         if (!empty($toOrder)) {
956 956
             $s = "";
957
-            foreach($toOrder as $f) {
957
+            foreach ($toOrder as $f) {
958 958
                 $s .= sprintf("'%s'('%s') ", $f['name'], $f['folderid']);
959 959
             }
960
-            ZLog::Write(LOGLEVEL_ERROR, "ASDevice->SetAdditionalFolderList(): cannot proceed as these folders have invalid parentids (not found): ". $s);
960
+            ZLog::Write(LOGLEVEL_ERROR, "ASDevice->SetAdditionalFolderList(): cannot proceed as these folders have invalid parentids (not found): ".$s);
961 961
             return false;
962 962
         }
963 963
 
964
-        foreach($ordered as $f) {
964
+        foreach ($ordered as $f) {
965 965
             $status = $this->AddAdditionalFolder($store, $f['folderid'], $f['name'], $f['type'], $f['flags'], $f['parentid'], !isset($noDupsCheck[$f['folderid']]));
966 966
             ZLog::Write(LOGLEVEL_DEBUG, sprintf("ASDevice->SetAdditionalFolderList(): set folder '%s' in additional folders list with status: %s", $f['name'], Utils::PrintAsString($status)));
967 967
             // break if a folder can not be added
@@ -983,7 +983,7 @@  discard block
 block discarded – undo
983 983
     private function orderAdditionalFoldersHierarchically(&$toOrderFolders, &$orderedFolders, $parentid = '0') {
984 984
         $stepInto = array();
985 985
         // loop through the remaining folders that need to be ordered
986
-        foreach($toOrderFolders as $folder) {
986
+        foreach ($toOrderFolders as $folder) {
987 987
             // move folders with the matching parentid to the ordered array
988 988
             if ($folder['parentid'] == $parentid) {
989 989
                 $fid = $folder['folderid'];
@@ -993,7 +993,7 @@  discard block
 block discarded – undo
993 993
             }
994 994
         }
995 995
         // call recursively to move/order the leaves as well
996
-        foreach($stepInto as $fid) {
996
+        foreach ($stepInto as $fid) {
997 997
             $this->orderAdditionalFoldersHierarchically($toOrderFolders, $orderedFolders, $fid);
998 998
         }
999 999
     }
@@ -1019,12 +1019,12 @@  discard block
 block discarded – undo
1019 1019
     private function generateFolderHash($backendid, $folderOrigin, $folderName) {
1020 1020
         // Hash backendid with crc32 and get the hex representation of it.
1021 1021
         // 5 chars of hash + $folderOrigin should still be enough to avoid collisions.
1022
-        $folderId = substr($folderOrigin . dechex(crc32($backendid)), 0, 6);
1022
+        $folderId = substr($folderOrigin.dechex(crc32($backendid)), 0, 6);
1023 1023
         $cnt = 0;
1024 1024
         // Collision avoiding. Append an increasing number to the string to hash
1025 1025
         // until there aren't any collisions. Probably a smaller number is also sufficient.
1026 1026
         while ((isset($this->contentData[$folderId]) || (is_array($this->backend2folderidCache) && in_array($folderId, $this->backend2folderidCache, true))) && $cnt < 10000) {
1027
-            $folderId = substr($folderOrigin . dechex(crc32($backendid . $folderName . $cnt++)), 0, 6);
1027
+            $folderId = substr($folderOrigin.dechex(crc32($backendid.$folderName.$cnt++)), 0, 6);
1028 1028
             ZLog::Write(LOGLEVEL_WARN, sprintf("ASDevice->generateFolderHash(): collision avoiding nr %05d. Generated hash: '%s'", $cnt, $folderId));
1029 1029
         }
1030 1030
         if ($cnt >= 10000) {
Please login to merge, or discard this patch.
lib/core/provisioningmanager.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
 
42 42
         // get provisioning data from redis
43 43
         $p = $this->getData($this->typePolicyCacheId);
44
-        if (! empty($p)) {
44
+        if (!empty($p)) {
45 45
             $this->policies = $p;
46 46
         }
47 47
         // no policies cached in redis, get policies from admin API
48 48
         else {
49 49
             $policies = false;
50
-            $api_response = file_get_contents(ADMIN_API_POLICY_ENDPOINT . self::$user);
50
+            $api_response = file_get_contents(ADMIN_API_POLICY_ENDPOINT.self::$user);
51 51
             if ($api_response) {
52 52
                 $data = json_decode($api_response);
53 53
                 if (isset($data->data)) {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             }
63 63
             $this->policies = $policies;
64 64
             // cache policies for 24h
65
-            $this->setData($this->policies, $this->typePolicyCacheId, 3600*24);
65
+            $this->setData($this->policies, $this->typePolicyCacheId, 3600 * 24);
66 66
         }
67 67
 
68 68
         // get policykey and hash
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
     }
71 71
 
72 72
     private function loadPolicyCache() {
73
-        if ($this->loadtime+29 > time()) {
73
+        if ($this->loadtime + 29 > time()) {
74 74
             return;
75 75
         }
76 76
         // get provisioning data from redis
77 77
         $d = $this->getDeviceUserData($this->type, self::$devid, self::$user);
78
-        if (! empty($d)) {
78
+        if (!empty($d)) {
79 79
             $this->policyKey = $d[self::KEY_POLICYKEY];
80 80
             $this->policyHash = $d[self::KEY_POLICYHASH];
81 81
             $this->updatetime = $d[self::KEY_UPDATETIME];
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         $this->loadPolicyCache();
114 114
 
115 115
         // check if policiykey matches
116
-        $p = ( ($policykey !== ASDevice::UNDEFINED && $policykey != $this->policyKey) || $this->policyKey == ASDevice::UNDEFINED );
116
+        $p = (($policykey !== ASDevice::UNDEFINED && $policykey != $this->policyKey) || $this->policyKey == ASDevice::UNDEFINED);
117 117
 
118 118
         if (!$noDebug || $p)
119 119
             ZLog::Write(LOGLEVEL_DEBUG, sprintf("ProvisioningManager->ProvisioningRequired('%s') saved device key '%s': %s", $policykey, $this->policyKey, Utils::PrintAsString($p)));
@@ -182,14 +182,14 @@  discard block
 block discarded – undo
182 182
         $status = SYNC_PROVISION_RWSTATUS_NA;
183 183
 
184 184
         // retrieve the WIPE STATUS from the Admin API
185
-        $api_response = file_get_contents(ADMIN_API_WIPE_ENDPOINT . self::$user ."?devices=". self::$devid);
185
+        $api_response = file_get_contents(ADMIN_API_WIPE_ENDPOINT.self::$user."?devices=".self::$devid);
186 186
         if ($api_response) {
187 187
             $data = json_decode($api_response, true);
188 188
             if (isset($data['data'][self::$devid]["status"])) {
189 189
                     $status = $data['data'][self::$devid]["status"];
190 190
                     // reset status to pending if it was already executed
191 191
                     if ($status >= SYNC_PROVISION_RWSTATUS_PENDING) {
192
-                        ZLog::Write(LOGLEVEL_INFO, sprintf("ProvisioningManager->GetProvisioningWipeStatus(): REMOTE WIPE due for user '%s' on device '%s' - status: '%s'",  self::$user, self::$devid, $status));
192
+                        ZLog::Write(LOGLEVEL_INFO, sprintf("ProvisioningManager->GetProvisioningWipeStatus(): REMOTE WIPE due for user '%s' on device '%s' - status: '%s'", self::$user, self::$devid, $status));
193 193
                         $status = SYNC_PROVISION_RWSTATUS_PENDING;
194 194
                     }
195 195
                     else {
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
                 )
225 225
             )
226 226
         );
227
-        $ret = file_get_contents(ADMIN_API_WIPE_ENDPOINT . self::$user ."?devices=". self::$devid, false, stream_context_create($opts));
227
+        $ret = file_get_contents(ADMIN_API_WIPE_ENDPOINT.self::$user."?devices=".self::$devid, false, stream_context_create($opts));
228 228
         ZLog::Write(LOGLEVEL_DEBUG, sprintf("ProvisioningManager->SetProvisioningWipeStatus() admin API response: %s", trim(Utils::PrintAsString($ret))));
229 229
         return strpos($http_response_header[0], "201") !== false;
230 230
     }
Please login to merge, or discard this patch.
lib/core/zpushdefs.php 1 patch
Spacing   +365 added lines, -365 removed lines patch added patch discarded remove patch
@@ -8,159 +8,159 @@  discard block
 block discarded – undo
8 8
  */
9 9
 
10 10
 // Code Page 0: AirSync, all AS versions
11
-define("SYNC_SYNCHRONIZE","Synchronize");
12
-define("SYNC_REPLIES","Replies");
13
-define("SYNC_ADD","Add");
14
-define("SYNC_MODIFY","Modify");
15
-define("SYNC_REMOVE","Remove");
16
-define("SYNC_FETCH","Fetch");
17
-define("SYNC_SYNCKEY","SyncKey");
18
-define("SYNC_CLIENTENTRYID","ClientEntryId");
19
-define("SYNC_SERVERENTRYID","ServerEntryId");
20
-define("SYNC_STATUS","Status");
21
-define("SYNC_FOLDER","Folder");
22
-define("SYNC_FOLDERTYPE","FolderType");
23
-define("SYNC_VERSION","Version"); // deprecated
24
-define("SYNC_FOLDERID","FolderId");
25
-define("SYNC_GETCHANGES","GetChanges");
26
-define("SYNC_MOREAVAILABLE","MoreAvailable");
27
-define("SYNC_WINDOWSIZE","WindowSize"); //MaxItems before version 2
28
-define("SYNC_PERFORM","Perform");
29
-define("SYNC_OPTIONS","Options");
30
-define("SYNC_FILTERTYPE","FilterType");
31
-define("SYNC_TRUNCATION","Truncation"); // 2.5
32
-define("SYNC_RTFTRUNCATION","RtfTruncation"); // 2.5
33
-define("SYNC_CONFLICT","Conflict");
34
-define("SYNC_FOLDERS","Folders");
35
-define("SYNC_DATA","Data");
36
-define("SYNC_DELETESASMOVES","DeletesAsMoves");
37
-define("SYNC_NOTIFYGUID","NotifyGUID");
38
-define("SYNC_SUPPORTED","Supported");
39
-define("SYNC_SOFTDELETE","SoftDelete");
40
-define("SYNC_MIMESUPPORT","MIMESupport");
41
-define("SYNC_MIMETRUNCATION","MIMETruncation");
42
-define("SYNC_NEWMESSAGE","NewMessage");
43
-define("SYNC_WAIT","Wait"); // Since 12.1
44
-define("SYNC_LIMIT","Limit"); // Since 12.1
45
-define("SYNC_PARTIAL","Partial"); // Since 12.1
46
-define("SYNC_CONVERSATIONMODE","ConversationMode"); // Since 14.0
47
-define("SYNC_MAXITEMS","MaxItems"); // Since 14.0
48
-define("SYNC_HEARTBEATINTERVAL","HeartbeatInterval"); // Since 14.0
11
+define("SYNC_SYNCHRONIZE", "Synchronize");
12
+define("SYNC_REPLIES", "Replies");
13
+define("SYNC_ADD", "Add");
14
+define("SYNC_MODIFY", "Modify");
15
+define("SYNC_REMOVE", "Remove");
16
+define("SYNC_FETCH", "Fetch");
17
+define("SYNC_SYNCKEY", "SyncKey");
18
+define("SYNC_CLIENTENTRYID", "ClientEntryId");
19
+define("SYNC_SERVERENTRYID", "ServerEntryId");
20
+define("SYNC_STATUS", "Status");
21
+define("SYNC_FOLDER", "Folder");
22
+define("SYNC_FOLDERTYPE", "FolderType");
23
+define("SYNC_VERSION", "Version"); // deprecated
24
+define("SYNC_FOLDERID", "FolderId");
25
+define("SYNC_GETCHANGES", "GetChanges");
26
+define("SYNC_MOREAVAILABLE", "MoreAvailable");
27
+define("SYNC_WINDOWSIZE", "WindowSize"); //MaxItems before version 2
28
+define("SYNC_PERFORM", "Perform");
29
+define("SYNC_OPTIONS", "Options");
30
+define("SYNC_FILTERTYPE", "FilterType");
31
+define("SYNC_TRUNCATION", "Truncation"); // 2.5
32
+define("SYNC_RTFTRUNCATION", "RtfTruncation"); // 2.5
33
+define("SYNC_CONFLICT", "Conflict");
34
+define("SYNC_FOLDERS", "Folders");
35
+define("SYNC_DATA", "Data");
36
+define("SYNC_DELETESASMOVES", "DeletesAsMoves");
37
+define("SYNC_NOTIFYGUID", "NotifyGUID");
38
+define("SYNC_SUPPORTED", "Supported");
39
+define("SYNC_SOFTDELETE", "SoftDelete");
40
+define("SYNC_MIMESUPPORT", "MIMESupport");
41
+define("SYNC_MIMETRUNCATION", "MIMETruncation");
42
+define("SYNC_NEWMESSAGE", "NewMessage");
43
+define("SYNC_WAIT", "Wait"); // Since 12.1
44
+define("SYNC_LIMIT", "Limit"); // Since 12.1
45
+define("SYNC_PARTIAL", "Partial"); // Since 12.1
46
+define("SYNC_CONVERSATIONMODE", "ConversationMode"); // Since 14.0
47
+define("SYNC_MAXITEMS", "MaxItems"); // Since 14.0
48
+define("SYNC_HEARTBEATINTERVAL", "HeartbeatInterval"); // Since 14.0
49 49
 
50 50
 // Code Page 1: Contacts - POOMCONTACTS, all AS versions
51
-define("SYNC_POOMCONTACTS_ANNIVERSARY","POOMCONTACTS:Anniversary");
52
-define("SYNC_POOMCONTACTS_ASSISTANTNAME","POOMCONTACTS:AssistantName");
53
-define("SYNC_POOMCONTACTS_ASSISTNAMEPHONENUMBER","POOMCONTACTS:AssistnamePhoneNumber");
54
-define("SYNC_POOMCONTACTS_BIRTHDAY","POOMCONTACTS:Birthday");
55
-define("SYNC_POOMCONTACTS_BODY","POOMCONTACTS:Body"); // 2.5, AirSyncBase Body is used since 12.0
56
-define("SYNC_POOMCONTACTS_BODYSIZE","POOMCONTACTS:BodySize"); // 2.5, AirSyncBase is used since version 12.0
57
-define("SYNC_POOMCONTACTS_BODYTRUNCATED","POOMCONTACTS:BodyTruncated"); // 2.5, AirSyncBase is used since version 12.0
58
-define("SYNC_POOMCONTACTS_BUSINESS2PHONENUMBER","POOMCONTACTS:Business2PhoneNumber");
59
-define("SYNC_POOMCONTACTS_BUSINESSCITY","POOMCONTACTS:BusinessCity");
60
-define("SYNC_POOMCONTACTS_BUSINESSCOUNTRY","POOMCONTACTS:BusinessCountry");
61
-define("SYNC_POOMCONTACTS_BUSINESSPOSTALCODE","POOMCONTACTS:BusinessPostalCode");
62
-define("SYNC_POOMCONTACTS_BUSINESSSTATE","POOMCONTACTS:BusinessState");
63
-define("SYNC_POOMCONTACTS_BUSINESSSTREET","POOMCONTACTS:BusinessStreet");
64
-define("SYNC_POOMCONTACTS_BUSINESSFAXNUMBER","POOMCONTACTS:BusinessFaxNumber");
65
-define("SYNC_POOMCONTACTS_BUSINESSPHONENUMBER","POOMCONTACTS:BusinessPhoneNumber");
66
-define("SYNC_POOMCONTACTS_CARPHONENUMBER","POOMCONTACTS:CarPhoneNumber");
67
-define("SYNC_POOMCONTACTS_CATEGORIES","POOMCONTACTS:Categories");
68
-define("SYNC_POOMCONTACTS_CATEGORY","POOMCONTACTS:Category");
69
-define("SYNC_POOMCONTACTS_CHILDREN","POOMCONTACTS:Children");
70
-define("SYNC_POOMCONTACTS_CHILD","POOMCONTACTS:Child");
71
-define("SYNC_POOMCONTACTS_COMPANYNAME","POOMCONTACTS:CompanyName");
72
-define("SYNC_POOMCONTACTS_DEPARTMENT","POOMCONTACTS:Department");
73
-define("SYNC_POOMCONTACTS_EMAIL1ADDRESS","POOMCONTACTS:Email1Address");
74
-define("SYNC_POOMCONTACTS_EMAIL2ADDRESS","POOMCONTACTS:Email2Address");
75
-define("SYNC_POOMCONTACTS_EMAIL3ADDRESS","POOMCONTACTS:Email3Address");
76
-define("SYNC_POOMCONTACTS_FILEAS","POOMCONTACTS:FileAs");
77
-define("SYNC_POOMCONTACTS_FIRSTNAME","POOMCONTACTS:FirstName");
78
-define("SYNC_POOMCONTACTS_HOME2PHONENUMBER","POOMCONTACTS:Home2PhoneNumber");
79
-define("SYNC_POOMCONTACTS_HOMECITY","POOMCONTACTS:HomeCity");
80
-define("SYNC_POOMCONTACTS_HOMECOUNTRY","POOMCONTACTS:HomeCountry");
81
-define("SYNC_POOMCONTACTS_HOMEPOSTALCODE","POOMCONTACTS:HomePostalCode");
82
-define("SYNC_POOMCONTACTS_HOMESTATE","POOMCONTACTS:HomeState");
83
-define("SYNC_POOMCONTACTS_HOMESTREET","POOMCONTACTS:HomeStreet");
84
-define("SYNC_POOMCONTACTS_HOMEFAXNUMBER","POOMCONTACTS:HomeFaxNumber");
85
-define("SYNC_POOMCONTACTS_HOMEPHONENUMBER","POOMCONTACTS:HomePhoneNumber");
86
-define("SYNC_POOMCONTACTS_JOBTITLE","POOMCONTACTS:JobTitle");
87
-define("SYNC_POOMCONTACTS_LASTNAME","POOMCONTACTS:LastName");
88
-define("SYNC_POOMCONTACTS_MIDDLENAME","POOMCONTACTS:MiddleName");
89
-define("SYNC_POOMCONTACTS_MOBILEPHONENUMBER","POOMCONTACTS:MobilePhoneNumber");
90
-define("SYNC_POOMCONTACTS_OFFICELOCATION","POOMCONTACTS:OfficeLocation");
91
-define("SYNC_POOMCONTACTS_OTHERCITY","POOMCONTACTS:OtherCity");
92
-define("SYNC_POOMCONTACTS_OTHERCOUNTRY","POOMCONTACTS:OtherCountry");
93
-define("SYNC_POOMCONTACTS_OTHERPOSTALCODE","POOMCONTACTS:OtherPostalCode");
94
-define("SYNC_POOMCONTACTS_OTHERSTATE","POOMCONTACTS:OtherState");
95
-define("SYNC_POOMCONTACTS_OTHERSTREET","POOMCONTACTS:OtherStreet");
96
-define("SYNC_POOMCONTACTS_PAGERNUMBER","POOMCONTACTS:PagerNumber");
97
-define("SYNC_POOMCONTACTS_RADIOPHONENUMBER","POOMCONTACTS:RadioPhoneNumber");
98
-define("SYNC_POOMCONTACTS_SPOUSE","POOMCONTACTS:Spouse");
99
-define("SYNC_POOMCONTACTS_SUFFIX","POOMCONTACTS:Suffix");
100
-define("SYNC_POOMCONTACTS_TITLE","POOMCONTACTS:Title");
101
-define("SYNC_POOMCONTACTS_WEBPAGE","POOMCONTACTS:WebPage");
102
-define("SYNC_POOMCONTACTS_YOMICOMPANYNAME","POOMCONTACTS:YomiCompanyName");
103
-define("SYNC_POOMCONTACTS_YOMIFIRSTNAME","POOMCONTACTS:YomiFirstName");
104
-define("SYNC_POOMCONTACTS_YOMILASTNAME","POOMCONTACTS:YomiLastName");
105
-define("SYNC_POOMCONTACTS_RTF","POOMCONTACTS:Rtf"); // deprecated
106
-define("SYNC_POOMCONTACTS_PICTURE","POOMCONTACTS:Picture");
107
-define("SYNC_POOMCONTACTS_ALIAS","POOMCONTACTS:Alias"); // Since 14.0
108
-define("SYNC_POOMCONTACTS_WEIGHEDRANK","POOMCONTACTS:WeightedRank"); // Since 14.0
51
+define("SYNC_POOMCONTACTS_ANNIVERSARY", "POOMCONTACTS:Anniversary");
52
+define("SYNC_POOMCONTACTS_ASSISTANTNAME", "POOMCONTACTS:AssistantName");
53
+define("SYNC_POOMCONTACTS_ASSISTNAMEPHONENUMBER", "POOMCONTACTS:AssistnamePhoneNumber");
54
+define("SYNC_POOMCONTACTS_BIRTHDAY", "POOMCONTACTS:Birthday");
55
+define("SYNC_POOMCONTACTS_BODY", "POOMCONTACTS:Body"); // 2.5, AirSyncBase Body is used since 12.0
56
+define("SYNC_POOMCONTACTS_BODYSIZE", "POOMCONTACTS:BodySize"); // 2.5, AirSyncBase is used since version 12.0
57
+define("SYNC_POOMCONTACTS_BODYTRUNCATED", "POOMCONTACTS:BodyTruncated"); // 2.5, AirSyncBase is used since version 12.0
58
+define("SYNC_POOMCONTACTS_BUSINESS2PHONENUMBER", "POOMCONTACTS:Business2PhoneNumber");
59
+define("SYNC_POOMCONTACTS_BUSINESSCITY", "POOMCONTACTS:BusinessCity");
60
+define("SYNC_POOMCONTACTS_BUSINESSCOUNTRY", "POOMCONTACTS:BusinessCountry");
61
+define("SYNC_POOMCONTACTS_BUSINESSPOSTALCODE", "POOMCONTACTS:BusinessPostalCode");
62
+define("SYNC_POOMCONTACTS_BUSINESSSTATE", "POOMCONTACTS:BusinessState");
63
+define("SYNC_POOMCONTACTS_BUSINESSSTREET", "POOMCONTACTS:BusinessStreet");
64
+define("SYNC_POOMCONTACTS_BUSINESSFAXNUMBER", "POOMCONTACTS:BusinessFaxNumber");
65
+define("SYNC_POOMCONTACTS_BUSINESSPHONENUMBER", "POOMCONTACTS:BusinessPhoneNumber");
66
+define("SYNC_POOMCONTACTS_CARPHONENUMBER", "POOMCONTACTS:CarPhoneNumber");
67
+define("SYNC_POOMCONTACTS_CATEGORIES", "POOMCONTACTS:Categories");
68
+define("SYNC_POOMCONTACTS_CATEGORY", "POOMCONTACTS:Category");
69
+define("SYNC_POOMCONTACTS_CHILDREN", "POOMCONTACTS:Children");
70
+define("SYNC_POOMCONTACTS_CHILD", "POOMCONTACTS:Child");
71
+define("SYNC_POOMCONTACTS_COMPANYNAME", "POOMCONTACTS:CompanyName");
72
+define("SYNC_POOMCONTACTS_DEPARTMENT", "POOMCONTACTS:Department");
73
+define("SYNC_POOMCONTACTS_EMAIL1ADDRESS", "POOMCONTACTS:Email1Address");
74
+define("SYNC_POOMCONTACTS_EMAIL2ADDRESS", "POOMCONTACTS:Email2Address");
75
+define("SYNC_POOMCONTACTS_EMAIL3ADDRESS", "POOMCONTACTS:Email3Address");
76
+define("SYNC_POOMCONTACTS_FILEAS", "POOMCONTACTS:FileAs");
77
+define("SYNC_POOMCONTACTS_FIRSTNAME", "POOMCONTACTS:FirstName");
78
+define("SYNC_POOMCONTACTS_HOME2PHONENUMBER", "POOMCONTACTS:Home2PhoneNumber");
79
+define("SYNC_POOMCONTACTS_HOMECITY", "POOMCONTACTS:HomeCity");
80
+define("SYNC_POOMCONTACTS_HOMECOUNTRY", "POOMCONTACTS:HomeCountry");
81
+define("SYNC_POOMCONTACTS_HOMEPOSTALCODE", "POOMCONTACTS:HomePostalCode");
82
+define("SYNC_POOMCONTACTS_HOMESTATE", "POOMCONTACTS:HomeState");
83
+define("SYNC_POOMCONTACTS_HOMESTREET", "POOMCONTACTS:HomeStreet");
84
+define("SYNC_POOMCONTACTS_HOMEFAXNUMBER", "POOMCONTACTS:HomeFaxNumber");
85
+define("SYNC_POOMCONTACTS_HOMEPHONENUMBER", "POOMCONTACTS:HomePhoneNumber");
86
+define("SYNC_POOMCONTACTS_JOBTITLE", "POOMCONTACTS:JobTitle");
87
+define("SYNC_POOMCONTACTS_LASTNAME", "POOMCONTACTS:LastName");
88
+define("SYNC_POOMCONTACTS_MIDDLENAME", "POOMCONTACTS:MiddleName");
89
+define("SYNC_POOMCONTACTS_MOBILEPHONENUMBER", "POOMCONTACTS:MobilePhoneNumber");
90
+define("SYNC_POOMCONTACTS_OFFICELOCATION", "POOMCONTACTS:OfficeLocation");
91
+define("SYNC_POOMCONTACTS_OTHERCITY", "POOMCONTACTS:OtherCity");
92
+define("SYNC_POOMCONTACTS_OTHERCOUNTRY", "POOMCONTACTS:OtherCountry");
93
+define("SYNC_POOMCONTACTS_OTHERPOSTALCODE", "POOMCONTACTS:OtherPostalCode");
94
+define("SYNC_POOMCONTACTS_OTHERSTATE", "POOMCONTACTS:OtherState");
95
+define("SYNC_POOMCONTACTS_OTHERSTREET", "POOMCONTACTS:OtherStreet");
96
+define("SYNC_POOMCONTACTS_PAGERNUMBER", "POOMCONTACTS:PagerNumber");
97
+define("SYNC_POOMCONTACTS_RADIOPHONENUMBER", "POOMCONTACTS:RadioPhoneNumber");
98
+define("SYNC_POOMCONTACTS_SPOUSE", "POOMCONTACTS:Spouse");
99
+define("SYNC_POOMCONTACTS_SUFFIX", "POOMCONTACTS:Suffix");
100
+define("SYNC_POOMCONTACTS_TITLE", "POOMCONTACTS:Title");
101
+define("SYNC_POOMCONTACTS_WEBPAGE", "POOMCONTACTS:WebPage");
102
+define("SYNC_POOMCONTACTS_YOMICOMPANYNAME", "POOMCONTACTS:YomiCompanyName");
103
+define("SYNC_POOMCONTACTS_YOMIFIRSTNAME", "POOMCONTACTS:YomiFirstName");
104
+define("SYNC_POOMCONTACTS_YOMILASTNAME", "POOMCONTACTS:YomiLastName");
105
+define("SYNC_POOMCONTACTS_RTF", "POOMCONTACTS:Rtf"); // deprecated
106
+define("SYNC_POOMCONTACTS_PICTURE", "POOMCONTACTS:Picture");
107
+define("SYNC_POOMCONTACTS_ALIAS", "POOMCONTACTS:Alias"); // Since 14.0
108
+define("SYNC_POOMCONTACTS_WEIGHEDRANK", "POOMCONTACTS:WeightedRank"); // Since 14.0
109 109
 
110 110
 // Code Page 2: Email - POOMMAIL, all AS versions
111
-define("SYNC_POOMMAIL_ATTACHMENT","POOMMAIL:Attachment"); // AirSyncBase Attachments is used since 12.0
112
-define("SYNC_POOMMAIL_ATTACHMENTS","POOMMAIL:Attachments"); // AirSyncBase Attachments is used since 12.0
113
-define("SYNC_POOMMAIL_ATTNAME","POOMMAIL:AttName"); // AirSyncBase Attachments is used since 12.0
114
-define("SYNC_POOMMAIL_ATTSIZE","POOMMAIL:AttSize"); // AirSyncBase Attachments is used since 12.0
115
-define("SYNC_POOMMAIL_ATTOID","POOMMAIL:AttOid"); // AirSyncBase Attachments is used since 12.0
116
-define("SYNC_POOMMAIL_ATTMETHOD","POOMMAIL:AttMethod"); // AirSyncBase Attachments is used since 12.0
117
-define("SYNC_POOMMAIL_ATTREMOVED","POOMMAIL:AttRemoved"); // AirSyncBase Attachments is used since 12.0
118
-define("SYNC_POOMMAIL_BODY","POOMMAIL:Body"); // AirSyncBase Body is used since 12.0
119
-define("SYNC_POOMMAIL_BODYSIZE","POOMMAIL:BodySize"); // AirSyncBase Body is used since 12.0
120
-define("SYNC_POOMMAIL_BODYTRUNCATED","POOMMAIL:BodyTruncated"); // AirSyncBase Body is used since 12.0
121
-define("SYNC_POOMMAIL_DATERECEIVED","POOMMAIL:DateReceived");
122
-define("SYNC_POOMMAIL_DISPLAYNAME","POOMMAIL:DisplayName"); // AirSyncBase Attachments is used since 12.0
123
-define("SYNC_POOMMAIL_DISPLAYTO","POOMMAIL:DisplayTo");
124
-define("SYNC_POOMMAIL_IMPORTANCE","POOMMAIL:Importance");
125
-define("SYNC_POOMMAIL_MESSAGECLASS","POOMMAIL:MessageClass");
126
-define("SYNC_POOMMAIL_SUBJECT","POOMMAIL:Subject");
127
-define("SYNC_POOMMAIL_READ","POOMMAIL:Read");
128
-define("SYNC_POOMMAIL_TO","POOMMAIL:To");
129
-define("SYNC_POOMMAIL_CC","POOMMAIL:Cc");
130
-define("SYNC_POOMMAIL_FROM","POOMMAIL:From");
131
-define("SYNC_POOMMAIL_REPLY_TO","POOMMAIL:Reply-To");
132
-define("SYNC_POOMMAIL_ALLDAYEVENT","POOMMAIL:AllDayEvent");
133
-define("SYNC_POOMMAIL_CATEGORIES","POOMMAIL:Categories"); // Since 14.0
134
-define("SYNC_POOMMAIL_CATEGORY","POOMMAIL:Category"); // Since 14.0
135
-define("SYNC_POOMMAIL_DTSTAMP","POOMMAIL:DtStamp");
136
-define("SYNC_POOMMAIL_ENDTIME","POOMMAIL:EndTime");
137
-define("SYNC_POOMMAIL_INSTANCETYPE","POOMMAIL:InstanceType");
138
-define("SYNC_POOMMAIL_BUSYSTATUS","POOMMAIL:BusyStatus");
139
-define("SYNC_POOMMAIL_LOCATION","POOMMAIL:Location"); // 2.5, 12.0, 12.1, 14.0 and 14.1. Since 16.0 AirSyncBase Location is used.
140
-define("SYNC_POOMMAIL_MEETINGREQUEST","POOMMAIL:MeetingRequest");
141
-define("SYNC_POOMMAIL_ORGANIZER","POOMMAIL:Organizer");
142
-define("SYNC_POOMMAIL_RECURRENCEID","POOMMAIL:RecurrenceId");
143
-define("SYNC_POOMMAIL_REMINDER","POOMMAIL:Reminder");
144
-define("SYNC_POOMMAIL_RESPONSEREQUESTED","POOMMAIL:ResponseRequested");
145
-define("SYNC_POOMMAIL_RECURRENCES","POOMMAIL:Recurrences");
146
-define("SYNC_POOMMAIL_RECURRENCE","POOMMAIL:Recurrence");
147
-define("SYNC_POOMMAIL_TYPE","POOMMAIL:Type");
148
-define("SYNC_POOMMAIL_UNTIL","POOMMAIL:Until");
149
-define("SYNC_POOMMAIL_OCCURRENCES","POOMMAIL:Occurrences");
150
-define("SYNC_POOMMAIL_INTERVAL","POOMMAIL:Interval");
151
-define("SYNC_POOMMAIL_DAYOFWEEK","POOMMAIL:DayOfWeek");
152
-define("SYNC_POOMMAIL_DAYOFMONTH","POOMMAIL:DayOfMonth");
153
-define("SYNC_POOMMAIL_WEEKOFMONTH","POOMMAIL:WeekOfMonth");
154
-define("SYNC_POOMMAIL_MONTHOFYEAR","POOMMAIL:MonthOfYear");
155
-define("SYNC_POOMMAIL_STARTTIME","POOMMAIL:StartTime");
156
-define("SYNC_POOMMAIL_SENSITIVITY","POOMMAIL:Sensitivity");
157
-define("SYNC_POOMMAIL_TIMEZONE","POOMMAIL:TimeZone");
158
-define("SYNC_POOMMAIL_GLOBALOBJID","POOMMAIL:GlobalObjId"); // 2.5, 12.0, 12.1, 14.0 and 14.1. UID of Calendar (Code page 4) is used since 16.0
159
-define("SYNC_POOMMAIL_THREADTOPIC","POOMMAIL:ThreadTopic");
160
-define("SYNC_POOMMAIL_MIMEDATA","POOMMAIL:MIMEData"); // 2.5
161
-define("SYNC_POOMMAIL_MIMETRUNCATED","POOMMAIL:MIMETruncated"); // 2.5
162
-define("SYNC_POOMMAIL_MIMESIZE","POOMMAIL:MIMESize");
163
-define("SYNC_POOMMAIL_INTERNETCPID","POOMMAIL:InternetCPID");
111
+define("SYNC_POOMMAIL_ATTACHMENT", "POOMMAIL:Attachment"); // AirSyncBase Attachments is used since 12.0
112
+define("SYNC_POOMMAIL_ATTACHMENTS", "POOMMAIL:Attachments"); // AirSyncBase Attachments is used since 12.0
113
+define("SYNC_POOMMAIL_ATTNAME", "POOMMAIL:AttName"); // AirSyncBase Attachments is used since 12.0
114
+define("SYNC_POOMMAIL_ATTSIZE", "POOMMAIL:AttSize"); // AirSyncBase Attachments is used since 12.0
115
+define("SYNC_POOMMAIL_ATTOID", "POOMMAIL:AttOid"); // AirSyncBase Attachments is used since 12.0
116
+define("SYNC_POOMMAIL_ATTMETHOD", "POOMMAIL:AttMethod"); // AirSyncBase Attachments is used since 12.0
117
+define("SYNC_POOMMAIL_ATTREMOVED", "POOMMAIL:AttRemoved"); // AirSyncBase Attachments is used since 12.0
118
+define("SYNC_POOMMAIL_BODY", "POOMMAIL:Body"); // AirSyncBase Body is used since 12.0
119
+define("SYNC_POOMMAIL_BODYSIZE", "POOMMAIL:BodySize"); // AirSyncBase Body is used since 12.0
120
+define("SYNC_POOMMAIL_BODYTRUNCATED", "POOMMAIL:BodyTruncated"); // AirSyncBase Body is used since 12.0
121
+define("SYNC_POOMMAIL_DATERECEIVED", "POOMMAIL:DateReceived");
122
+define("SYNC_POOMMAIL_DISPLAYNAME", "POOMMAIL:DisplayName"); // AirSyncBase Attachments is used since 12.0
123
+define("SYNC_POOMMAIL_DISPLAYTO", "POOMMAIL:DisplayTo");
124
+define("SYNC_POOMMAIL_IMPORTANCE", "POOMMAIL:Importance");
125
+define("SYNC_POOMMAIL_MESSAGECLASS", "POOMMAIL:MessageClass");
126
+define("SYNC_POOMMAIL_SUBJECT", "POOMMAIL:Subject");
127
+define("SYNC_POOMMAIL_READ", "POOMMAIL:Read");
128
+define("SYNC_POOMMAIL_TO", "POOMMAIL:To");
129
+define("SYNC_POOMMAIL_CC", "POOMMAIL:Cc");
130
+define("SYNC_POOMMAIL_FROM", "POOMMAIL:From");
131
+define("SYNC_POOMMAIL_REPLY_TO", "POOMMAIL:Reply-To");
132
+define("SYNC_POOMMAIL_ALLDAYEVENT", "POOMMAIL:AllDayEvent");
133
+define("SYNC_POOMMAIL_CATEGORIES", "POOMMAIL:Categories"); // Since 14.0
134
+define("SYNC_POOMMAIL_CATEGORY", "POOMMAIL:Category"); // Since 14.0
135
+define("SYNC_POOMMAIL_DTSTAMP", "POOMMAIL:DtStamp");
136
+define("SYNC_POOMMAIL_ENDTIME", "POOMMAIL:EndTime");
137
+define("SYNC_POOMMAIL_INSTANCETYPE", "POOMMAIL:InstanceType");
138
+define("SYNC_POOMMAIL_BUSYSTATUS", "POOMMAIL:BusyStatus");
139
+define("SYNC_POOMMAIL_LOCATION", "POOMMAIL:Location"); // 2.5, 12.0, 12.1, 14.0 and 14.1. Since 16.0 AirSyncBase Location is used.
140
+define("SYNC_POOMMAIL_MEETINGREQUEST", "POOMMAIL:MeetingRequest");
141
+define("SYNC_POOMMAIL_ORGANIZER", "POOMMAIL:Organizer");
142
+define("SYNC_POOMMAIL_RECURRENCEID", "POOMMAIL:RecurrenceId");
143
+define("SYNC_POOMMAIL_REMINDER", "POOMMAIL:Reminder");
144
+define("SYNC_POOMMAIL_RESPONSEREQUESTED", "POOMMAIL:ResponseRequested");
145
+define("SYNC_POOMMAIL_RECURRENCES", "POOMMAIL:Recurrences");
146
+define("SYNC_POOMMAIL_RECURRENCE", "POOMMAIL:Recurrence");
147
+define("SYNC_POOMMAIL_TYPE", "POOMMAIL:Type");
148
+define("SYNC_POOMMAIL_UNTIL", "POOMMAIL:Until");
149
+define("SYNC_POOMMAIL_OCCURRENCES", "POOMMAIL:Occurrences");
150
+define("SYNC_POOMMAIL_INTERVAL", "POOMMAIL:Interval");
151
+define("SYNC_POOMMAIL_DAYOFWEEK", "POOMMAIL:DayOfWeek");
152
+define("SYNC_POOMMAIL_DAYOFMONTH", "POOMMAIL:DayOfMonth");
153
+define("SYNC_POOMMAIL_WEEKOFMONTH", "POOMMAIL:WeekOfMonth");
154
+define("SYNC_POOMMAIL_MONTHOFYEAR", "POOMMAIL:MonthOfYear");
155
+define("SYNC_POOMMAIL_STARTTIME", "POOMMAIL:StartTime");
156
+define("SYNC_POOMMAIL_SENSITIVITY", "POOMMAIL:Sensitivity");
157
+define("SYNC_POOMMAIL_TIMEZONE", "POOMMAIL:TimeZone");
158
+define("SYNC_POOMMAIL_GLOBALOBJID", "POOMMAIL:GlobalObjId"); // 2.5, 12.0, 12.1, 14.0 and 14.1. UID of Calendar (Code page 4) is used since 16.0
159
+define("SYNC_POOMMAIL_THREADTOPIC", "POOMMAIL:ThreadTopic");
160
+define("SYNC_POOMMAIL_MIMEDATA", "POOMMAIL:MIMEData"); // 2.5
161
+define("SYNC_POOMMAIL_MIMETRUNCATED", "POOMMAIL:MIMETruncated"); // 2.5
162
+define("SYNC_POOMMAIL_MIMESIZE", "POOMMAIL:MIMESize");
163
+define("SYNC_POOMMAIL_INTERNETCPID", "POOMMAIL:InternetCPID");
164 164
 define("SYNC_POOMMAIL_FLAG", "POOMMAIL:Flag"); // Since 12.0
165 165
 define("SYNC_POOMMAIL_FLAGSTATUS", "POOMMAIL:FlagStatus"); // Since 12.0
166 166
 define("SYNC_POOMMAIL_CONTENTCLASS", "POOMMAIL:ContentClass"); // Since 12.0
@@ -169,231 +169,231 @@  discard block
 block discarded – undo
169 169
 define("SYNC_POOMMAIL_DISALLOWNEWTIMEPROPOSAL", "POOMMAIL:DisallowNewTimeProposal"); // Since 14.0
170 170
 
171 171
 // Code Page 3: AirNotify - AIRNOTIFY, no longer in use
172
-define("SYNC_AIRNOTIFY_NOTIFY","AirNotify:Notify");
173
-define("SYNC_AIRNOTIFY_NOTIFICATION","AirNotify:Notification");
174
-define("SYNC_AIRNOTIFY_VERSION","AirNotify:Version");
175
-define("SYNC_AIRNOTIFY_LIFETIME","AirNotify:Lifetime");
176
-define("SYNC_AIRNOTIFY_DEVICEINFO","AirNotify:DeviceInfo");
177
-define("SYNC_AIRNOTIFY_ENABLE","AirNotify:Enable");
178
-define("SYNC_AIRNOTIFY_FOLDER","AirNotify:Folder");
179
-define("SYNC_AIRNOTIFY_SERVERENTRYID","AirNotify:ServerEntryId");
180
-define("SYNC_AIRNOTIFY_DEVICEADDRESS","AirNotify:DeviceAddress");
181
-define("SYNC_AIRNOTIFY_VALIDCARRIERPROFILES","AirNotify:ValidCarrierProfiles");
182
-define("SYNC_AIRNOTIFY_CARRIERPROFILE","AirNotify:CarrierProfile");
183
-define("SYNC_AIRNOTIFY_STATUS","AirNotify:Status");
184
-define("SYNC_AIRNOTIFY_REPLIES","AirNotify:Replies");
185
-define("SYNC_AIRNOTIFY_VERSION='1.1'","AirNotify:Version='1.1'");
186
-define("SYNC_AIRNOTIFY_DEVICES","AirNotify:Devices");
187
-define("SYNC_AIRNOTIFY_DEVICE","AirNotify:Device");
188
-define("SYNC_AIRNOTIFY_ID","AirNotify:Id");
189
-define("SYNC_AIRNOTIFY_EXPIRY","AirNotify:Expiry");
190
-define("SYNC_AIRNOTIFY_NOTIFYGUID","AirNotify:NotifyGUID");
172
+define("SYNC_AIRNOTIFY_NOTIFY", "AirNotify:Notify");
173
+define("SYNC_AIRNOTIFY_NOTIFICATION", "AirNotify:Notification");
174
+define("SYNC_AIRNOTIFY_VERSION", "AirNotify:Version");
175
+define("SYNC_AIRNOTIFY_LIFETIME", "AirNotify:Lifetime");
176
+define("SYNC_AIRNOTIFY_DEVICEINFO", "AirNotify:DeviceInfo");
177
+define("SYNC_AIRNOTIFY_ENABLE", "AirNotify:Enable");
178
+define("SYNC_AIRNOTIFY_FOLDER", "AirNotify:Folder");
179
+define("SYNC_AIRNOTIFY_SERVERENTRYID", "AirNotify:ServerEntryId");
180
+define("SYNC_AIRNOTIFY_DEVICEADDRESS", "AirNotify:DeviceAddress");
181
+define("SYNC_AIRNOTIFY_VALIDCARRIERPROFILES", "AirNotify:ValidCarrierProfiles");
182
+define("SYNC_AIRNOTIFY_CARRIERPROFILE", "AirNotify:CarrierProfile");
183
+define("SYNC_AIRNOTIFY_STATUS", "AirNotify:Status");
184
+define("SYNC_AIRNOTIFY_REPLIES", "AirNotify:Replies");
185
+define("SYNC_AIRNOTIFY_VERSION='1.1'", "AirNotify:Version='1.1'");
186
+define("SYNC_AIRNOTIFY_DEVICES", "AirNotify:Devices");
187
+define("SYNC_AIRNOTIFY_DEVICE", "AirNotify:Device");
188
+define("SYNC_AIRNOTIFY_ID", "AirNotify:Id");
189
+define("SYNC_AIRNOTIFY_EXPIRY", "AirNotify:Expiry");
190
+define("SYNC_AIRNOTIFY_NOTIFYGUID", "AirNotify:NotifyGUID");
191 191
 
192 192
 // Code Page 4: Calendar - POOMCAL, all AS versions
193
-define("SYNC_POOMCAL_TIMEZONE","POOMCAL:Timezone");
194
-define("SYNC_POOMCAL_ALLDAYEVENT","POOMCAL:AllDayEvent");
195
-define("SYNC_POOMCAL_ATTENDEES","POOMCAL:Attendees");
196
-define("SYNC_POOMCAL_ATTENDEE","POOMCAL:Attendee");
197
-define("SYNC_POOMCAL_EMAIL","POOMCAL:Email");
198
-define("SYNC_POOMCAL_NAME","POOMCAL:Name");
199
-define("SYNC_POOMCAL_BODY","POOMCAL:Body"); // AirSyncBase Body is used since 12.0
200
-define("SYNC_POOMCAL_BODYTRUNCATED","POOMCAL:BodyTruncated"); // AirSyncBase Body is used since 12.0
201
-define("SYNC_POOMCAL_BUSYSTATUS","POOMCAL:BusyStatus");
202
-define("SYNC_POOMCAL_CATEGORIES","POOMCAL:Categories");
203
-define("SYNC_POOMCAL_CATEGORY","POOMCAL:Category");
204
-define("SYNC_POOMCAL_RTF","POOMCAL:Rtf"); // deprecated
205
-define("SYNC_POOMCAL_DTSTAMP","POOMCAL:DtStamp");
206
-define("SYNC_POOMCAL_ENDTIME","POOMCAL:EndTime");
207
-define("SYNC_POOMCAL_EXCEPTION","POOMCAL:Exception");
208
-define("SYNC_POOMCAL_EXCEPTIONS","POOMCAL:Exceptions");
209
-define("SYNC_POOMCAL_DELETED","POOMCAL:Deleted");
210
-define("SYNC_POOMCAL_EXCEPTIONSTARTTIME","POOMCAL:ExceptionStartTime"); // 2.5, 12.0, 12.1, 14.0 and 14.1.
211
-define("SYNC_POOMCAL_LOCATION","POOMCAL:Location"); // 2.5, 12.0, 12.1, 14.0 and 14.1. Since 16.0 AirSyncBase Location is used.
212
-define("SYNC_POOMCAL_MEETINGSTATUS","POOMCAL:MeetingStatus");
213
-define("SYNC_POOMCAL_ORGANIZEREMAIL","POOMCAL:OrganizerEmail");
214
-define("SYNC_POOMCAL_ORGANIZERNAME","POOMCAL:OrganizerName");
215
-define("SYNC_POOMCAL_RECURRENCE","POOMCAL:Recurrence");
216
-define("SYNC_POOMCAL_TYPE","POOMCAL:Type");
217
-define("SYNC_POOMCAL_UNTIL","POOMCAL:Until");
218
-define("SYNC_POOMCAL_OCCURRENCES","POOMCAL:Occurrences");
219
-define("SYNC_POOMCAL_INTERVAL","POOMCAL:Interval");
220
-define("SYNC_POOMCAL_DAYOFWEEK","POOMCAL:DayOfWeek");
221
-define("SYNC_POOMCAL_DAYOFMONTH","POOMCAL:DayOfMonth");
222
-define("SYNC_POOMCAL_WEEKOFMONTH","POOMCAL:WeekOfMonth");
223
-define("SYNC_POOMCAL_MONTHOFYEAR","POOMCAL:MonthOfYear");
224
-define("SYNC_POOMCAL_REMINDER","POOMCAL:Reminder");
225
-define("SYNC_POOMCAL_SENSITIVITY","POOMCAL:Sensitivity");
226
-define("SYNC_POOMCAL_SUBJECT","POOMCAL:Subject");
227
-define("SYNC_POOMCAL_STARTTIME","POOMCAL:StartTime");
228
-define("SYNC_POOMCAL_UID","POOMCAL:UID");
229
-define("SYNC_POOMCAL_ATTENDEESTATUS","POOMCAL:Attendee_Status"); // Since 12.0
230
-define("SYNC_POOMCAL_ATTENDEETYPE","POOMCAL:Attendee_Type"); // Since 12.0
231
-define("SYNC_POOMCAL_ATTACHMENT","POOMCAL:Attachment"); // Not defined / deprecated
232
-define("SYNC_POOMCAL_ATTACHMENTS","POOMCAL:Attachments"); // Not defined / deprecated
233
-define("SYNC_POOMCAL_ATTNAME","POOMCAL:AttName"); // Not defined / deprecated
234
-define("SYNC_POOMCAL_ATTSIZE","POOMCAL:AttSize"); // Not defined / deprecated
235
-define("SYNC_POOMCAL_ATTOID","POOMCAL:AttOid"); // Not defined / deprecated
236
-define("SYNC_POOMCAL_ATTMETHOD","POOMCAL:AttMethod"); // Not defined / deprecated
237
-define("SYNC_POOMCAL_ATTREMOVED","POOMCAL:AttRemoved"); // Not defined / deprecated
238
-define("SYNC_POOMCAL_DISPLAYNAME","POOMCAL:DisplayName"); // Not defined / deprecated
239
-define("SYNC_POOMCAL_DISALLOWNEWTIMEPROPOSAL","POOMCAL:DisallowNewTimeProposal"); // Since 14.0
240
-define("SYNC_POOMCAL_RESPONSEREQUESTED","POOMCAL:ResponseRequested"); // Since 14.0
241
-define("SYNC_POOMCAL_APPOINTMENTREPLYTIME","POOMCAL:AppointmentReplyTime"); // Since 14.0
242
-define("SYNC_POOMCAL_RESPONSETYPE","POOMCAL:ResponseType"); // Since 14.0
243
-define("SYNC_POOMCAL_CALENDARTYPE","POOMCAL:CalendarType"); // Since 14.0
244
-define("SYNC_POOMCAL_ISLEAPMONTH","POOMCAL:IsLeapMonth"); // Since 14.0
245
-define("SYNC_POOMCAL_FIRSTDAYOFWEEK","POOMCAL:FirstDayOfWeek"); // Since 14.1
246
-define("SYNC_POOMCAL_ONLINEMEETINGCONFLINK","POOMCAL:OnlineMeetingConfLink"); // Since 14.1
247
-define("SYNC_POOMCAL_ONLINEMEETINGEXTERNALLINK","POOMCAL:OnlineMeetingExternalLink"); // Since 14.0
193
+define("SYNC_POOMCAL_TIMEZONE", "POOMCAL:Timezone");
194
+define("SYNC_POOMCAL_ALLDAYEVENT", "POOMCAL:AllDayEvent");
195
+define("SYNC_POOMCAL_ATTENDEES", "POOMCAL:Attendees");
196
+define("SYNC_POOMCAL_ATTENDEE", "POOMCAL:Attendee");
197
+define("SYNC_POOMCAL_EMAIL", "POOMCAL:Email");
198
+define("SYNC_POOMCAL_NAME", "POOMCAL:Name");
199
+define("SYNC_POOMCAL_BODY", "POOMCAL:Body"); // AirSyncBase Body is used since 12.0
200
+define("SYNC_POOMCAL_BODYTRUNCATED", "POOMCAL:BodyTruncated"); // AirSyncBase Body is used since 12.0
201
+define("SYNC_POOMCAL_BUSYSTATUS", "POOMCAL:BusyStatus");
202
+define("SYNC_POOMCAL_CATEGORIES", "POOMCAL:Categories");
203
+define("SYNC_POOMCAL_CATEGORY", "POOMCAL:Category");
204
+define("SYNC_POOMCAL_RTF", "POOMCAL:Rtf"); // deprecated
205
+define("SYNC_POOMCAL_DTSTAMP", "POOMCAL:DtStamp");
206
+define("SYNC_POOMCAL_ENDTIME", "POOMCAL:EndTime");
207
+define("SYNC_POOMCAL_EXCEPTION", "POOMCAL:Exception");
208
+define("SYNC_POOMCAL_EXCEPTIONS", "POOMCAL:Exceptions");
209
+define("SYNC_POOMCAL_DELETED", "POOMCAL:Deleted");
210
+define("SYNC_POOMCAL_EXCEPTIONSTARTTIME", "POOMCAL:ExceptionStartTime"); // 2.5, 12.0, 12.1, 14.0 and 14.1.
211
+define("SYNC_POOMCAL_LOCATION", "POOMCAL:Location"); // 2.5, 12.0, 12.1, 14.0 and 14.1. Since 16.0 AirSyncBase Location is used.
212
+define("SYNC_POOMCAL_MEETINGSTATUS", "POOMCAL:MeetingStatus");
213
+define("SYNC_POOMCAL_ORGANIZEREMAIL", "POOMCAL:OrganizerEmail");
214
+define("SYNC_POOMCAL_ORGANIZERNAME", "POOMCAL:OrganizerName");
215
+define("SYNC_POOMCAL_RECURRENCE", "POOMCAL:Recurrence");
216
+define("SYNC_POOMCAL_TYPE", "POOMCAL:Type");
217
+define("SYNC_POOMCAL_UNTIL", "POOMCAL:Until");
218
+define("SYNC_POOMCAL_OCCURRENCES", "POOMCAL:Occurrences");
219
+define("SYNC_POOMCAL_INTERVAL", "POOMCAL:Interval");
220
+define("SYNC_POOMCAL_DAYOFWEEK", "POOMCAL:DayOfWeek");
221
+define("SYNC_POOMCAL_DAYOFMONTH", "POOMCAL:DayOfMonth");
222
+define("SYNC_POOMCAL_WEEKOFMONTH", "POOMCAL:WeekOfMonth");
223
+define("SYNC_POOMCAL_MONTHOFYEAR", "POOMCAL:MonthOfYear");
224
+define("SYNC_POOMCAL_REMINDER", "POOMCAL:Reminder");
225
+define("SYNC_POOMCAL_SENSITIVITY", "POOMCAL:Sensitivity");
226
+define("SYNC_POOMCAL_SUBJECT", "POOMCAL:Subject");
227
+define("SYNC_POOMCAL_STARTTIME", "POOMCAL:StartTime");
228
+define("SYNC_POOMCAL_UID", "POOMCAL:UID");
229
+define("SYNC_POOMCAL_ATTENDEESTATUS", "POOMCAL:Attendee_Status"); // Since 12.0
230
+define("SYNC_POOMCAL_ATTENDEETYPE", "POOMCAL:Attendee_Type"); // Since 12.0
231
+define("SYNC_POOMCAL_ATTACHMENT", "POOMCAL:Attachment"); // Not defined / deprecated
232
+define("SYNC_POOMCAL_ATTACHMENTS", "POOMCAL:Attachments"); // Not defined / deprecated
233
+define("SYNC_POOMCAL_ATTNAME", "POOMCAL:AttName"); // Not defined / deprecated
234
+define("SYNC_POOMCAL_ATTSIZE", "POOMCAL:AttSize"); // Not defined / deprecated
235
+define("SYNC_POOMCAL_ATTOID", "POOMCAL:AttOid"); // Not defined / deprecated
236
+define("SYNC_POOMCAL_ATTMETHOD", "POOMCAL:AttMethod"); // Not defined / deprecated
237
+define("SYNC_POOMCAL_ATTREMOVED", "POOMCAL:AttRemoved"); // Not defined / deprecated
238
+define("SYNC_POOMCAL_DISPLAYNAME", "POOMCAL:DisplayName"); // Not defined / deprecated
239
+define("SYNC_POOMCAL_DISALLOWNEWTIMEPROPOSAL", "POOMCAL:DisallowNewTimeProposal"); // Since 14.0
240
+define("SYNC_POOMCAL_RESPONSEREQUESTED", "POOMCAL:ResponseRequested"); // Since 14.0
241
+define("SYNC_POOMCAL_APPOINTMENTREPLYTIME", "POOMCAL:AppointmentReplyTime"); // Since 14.0
242
+define("SYNC_POOMCAL_RESPONSETYPE", "POOMCAL:ResponseType"); // Since 14.0
243
+define("SYNC_POOMCAL_CALENDARTYPE", "POOMCAL:CalendarType"); // Since 14.0
244
+define("SYNC_POOMCAL_ISLEAPMONTH", "POOMCAL:IsLeapMonth"); // Since 14.0
245
+define("SYNC_POOMCAL_FIRSTDAYOFWEEK", "POOMCAL:FirstDayOfWeek"); // Since 14.1
246
+define("SYNC_POOMCAL_ONLINEMEETINGCONFLINK", "POOMCAL:OnlineMeetingConfLink"); // Since 14.1
247
+define("SYNC_POOMCAL_ONLINEMEETINGEXTERNALLINK", "POOMCAL:OnlineMeetingExternalLink"); // Since 14.0
248 248
 
249 249
 // Code Page 5: Move, all AS versions
250
-define("SYNC_MOVE_MOVES","Move:Moves");
251
-define("SYNC_MOVE_MOVE","Move:Move");
252
-define("SYNC_MOVE_SRCMSGID","Move:SrcMsgId");
253
-define("SYNC_MOVE_SRCFLDID","Move:SrcFldId");
254
-define("SYNC_MOVE_DSTFLDID","Move:DstFldId");
255
-define("SYNC_MOVE_RESPONSE","Move:Response");
256
-define("SYNC_MOVE_STATUS","Move:Status");
257
-define("SYNC_MOVE_DSTMSGID","Move:DstMsgId");
250
+define("SYNC_MOVE_MOVES", "Move:Moves");
251
+define("SYNC_MOVE_MOVE", "Move:Move");
252
+define("SYNC_MOVE_SRCMSGID", "Move:SrcMsgId");
253
+define("SYNC_MOVE_SRCFLDID", "Move:SrcFldId");
254
+define("SYNC_MOVE_DSTFLDID", "Move:DstFldId");
255
+define("SYNC_MOVE_RESPONSE", "Move:Response");
256
+define("SYNC_MOVE_STATUS", "Move:Status");
257
+define("SYNC_MOVE_DSTMSGID", "Move:DstMsgId");
258 258
 
259 259
 // Code Page 6: GetItemEstimate, all AS versions
260
-define("SYNC_GETITEMESTIMATE_GETITEMESTIMATE","GetItemEstimate:GetItemEstimate");
261
-define("SYNC_GETITEMESTIMATE_VERSION","GetItemEstimate:Version"); // deprecated
262
-define("SYNC_GETITEMESTIMATE_FOLDERS","GetItemEstimate:Folders");
263
-define("SYNC_GETITEMESTIMATE_FOLDER","GetItemEstimate:Folder");
264
-define("SYNC_GETITEMESTIMATE_FOLDERTYPE","GetItemEstimate:FolderType"); // AirSync Class(SYNC_FOLDERTYPE) is used since AS 14.0
265
-define("SYNC_GETITEMESTIMATE_FOLDERID","GetItemEstimate:FolderId");
266
-define("SYNC_GETITEMESTIMATE_DATETIME","GetItemEstimate:DateTime"); // deprecated
267
-define("SYNC_GETITEMESTIMATE_ESTIMATE","GetItemEstimate:Estimate");
268
-define("SYNC_GETITEMESTIMATE_RESPONSE","GetItemEstimate:Response");
269
-define("SYNC_GETITEMESTIMATE_STATUS","GetItemEstimate:Status");
260
+define("SYNC_GETITEMESTIMATE_GETITEMESTIMATE", "GetItemEstimate:GetItemEstimate");
261
+define("SYNC_GETITEMESTIMATE_VERSION", "GetItemEstimate:Version"); // deprecated
262
+define("SYNC_GETITEMESTIMATE_FOLDERS", "GetItemEstimate:Folders");
263
+define("SYNC_GETITEMESTIMATE_FOLDER", "GetItemEstimate:Folder");
264
+define("SYNC_GETITEMESTIMATE_FOLDERTYPE", "GetItemEstimate:FolderType"); // AirSync Class(SYNC_FOLDERTYPE) is used since AS 14.0
265
+define("SYNC_GETITEMESTIMATE_FOLDERID", "GetItemEstimate:FolderId");
266
+define("SYNC_GETITEMESTIMATE_DATETIME", "GetItemEstimate:DateTime"); // deprecated
267
+define("SYNC_GETITEMESTIMATE_ESTIMATE", "GetItemEstimate:Estimate");
268
+define("SYNC_GETITEMESTIMATE_RESPONSE", "GetItemEstimate:Response");
269
+define("SYNC_GETITEMESTIMATE_STATUS", "GetItemEstimate:Status");
270 270
 
271 271
 // Code Page 7: FolderHierarchy, all AS versions
272
-define("SYNC_FOLDERHIERARCHY_FOLDERS","FolderHierarchy:Folders"); // 2.5, 12.0 and 12.1
273
-define("SYNC_FOLDERHIERARCHY_FOLDER","FolderHierarchy:Folder"); // 2.5, 12.0 and 12.1
274
-define("SYNC_FOLDERHIERARCHY_DISPLAYNAME","FolderHierarchy:DisplayName");
275
-define("SYNC_FOLDERHIERARCHY_SERVERENTRYID","FolderHierarchy:ServerEntryId");
276
-define("SYNC_FOLDERHIERARCHY_PARENTID","FolderHierarchy:ParentId");
277
-define("SYNC_FOLDERHIERARCHY_TYPE","FolderHierarchy:Type");
278
-define("SYNC_FOLDERHIERARCHY_RESPONSE","FolderHierarchy:Response"); // deprecated
279
-define("SYNC_FOLDERHIERARCHY_STATUS","FolderHierarchy:Status");
280
-define("SYNC_FOLDERHIERARCHY_CONTENTCLASS","FolderHierarchy:ContentClass"); // deprecated
281
-define("SYNC_FOLDERHIERARCHY_CHANGES","FolderHierarchy:Changes");
282
-define("SYNC_FOLDERHIERARCHY_ADD","FolderHierarchy:Add");
283
-define("SYNC_FOLDERHIERARCHY_REMOVE","FolderHierarchy:Remove");
284
-define("SYNC_FOLDERHIERARCHY_UPDATE","FolderHierarchy:Update");
285
-define("SYNC_FOLDERHIERARCHY_SYNCKEY","FolderHierarchy:SyncKey");
286
-define("SYNC_FOLDERHIERARCHY_FOLDERCREATE","FolderHierarchy:FolderCreate");
287
-define("SYNC_FOLDERHIERARCHY_FOLDERDELETE","FolderHierarchy:FolderDelete");
288
-define("SYNC_FOLDERHIERARCHY_FOLDERUPDATE","FolderHierarchy:FolderUpdate");
289
-define("SYNC_FOLDERHIERARCHY_FOLDERSYNC","FolderHierarchy:FolderSync");
290
-define("SYNC_FOLDERHIERARCHY_COUNT","FolderHierarchy:Count");
291
-define("SYNC_FOLDERHIERARCHY_VERSION","FolderHierarchy:Version"); // Not defined / deprecated
272
+define("SYNC_FOLDERHIERARCHY_FOLDERS", "FolderHierarchy:Folders"); // 2.5, 12.0 and 12.1
273
+define("SYNC_FOLDERHIERARCHY_FOLDER", "FolderHierarchy:Folder"); // 2.5, 12.0 and 12.1
274
+define("SYNC_FOLDERHIERARCHY_DISPLAYNAME", "FolderHierarchy:DisplayName");
275
+define("SYNC_FOLDERHIERARCHY_SERVERENTRYID", "FolderHierarchy:ServerEntryId");
276
+define("SYNC_FOLDERHIERARCHY_PARENTID", "FolderHierarchy:ParentId");
277
+define("SYNC_FOLDERHIERARCHY_TYPE", "FolderHierarchy:Type");
278
+define("SYNC_FOLDERHIERARCHY_RESPONSE", "FolderHierarchy:Response"); // deprecated
279
+define("SYNC_FOLDERHIERARCHY_STATUS", "FolderHierarchy:Status");
280
+define("SYNC_FOLDERHIERARCHY_CONTENTCLASS", "FolderHierarchy:ContentClass"); // deprecated
281
+define("SYNC_FOLDERHIERARCHY_CHANGES", "FolderHierarchy:Changes");
282
+define("SYNC_FOLDERHIERARCHY_ADD", "FolderHierarchy:Add");
283
+define("SYNC_FOLDERHIERARCHY_REMOVE", "FolderHierarchy:Remove");
284
+define("SYNC_FOLDERHIERARCHY_UPDATE", "FolderHierarchy:Update");
285
+define("SYNC_FOLDERHIERARCHY_SYNCKEY", "FolderHierarchy:SyncKey");
286
+define("SYNC_FOLDERHIERARCHY_FOLDERCREATE", "FolderHierarchy:FolderCreate");
287
+define("SYNC_FOLDERHIERARCHY_FOLDERDELETE", "FolderHierarchy:FolderDelete");
288
+define("SYNC_FOLDERHIERARCHY_FOLDERUPDATE", "FolderHierarchy:FolderUpdate");
289
+define("SYNC_FOLDERHIERARCHY_FOLDERSYNC", "FolderHierarchy:FolderSync");
290
+define("SYNC_FOLDERHIERARCHY_COUNT", "FolderHierarchy:Count");
291
+define("SYNC_FOLDERHIERARCHY_VERSION", "FolderHierarchy:Version"); // Not defined / deprecated
292 292
 // only for internal use - never to be streamed to the mobile
293
-define("SYNC_FOLDERHIERARCHY_IGNORE_STORE","FolderHierarchy:IgnoreStore");
294
-define("SYNC_FOLDERHIERARCHY_IGNORE_NOBCKENDFLD","FolderHierarchy:IgnoreNoBackendFolder");
295
-define("SYNC_FOLDERHIERARCHY_IGNORE_BACKENDID","FolderHierarchy:IgnoreBackendId");
296
-define("SYNC_FOLDERHIERARCHY_IGNORE_FLAGS","FolderHierarchy:IgnoreFlags");
297
-define("SYNC_FOLDERHIERARCHY_IGNORE_TYPEREAL","FolderHierarchy:TypeReal");
293
+define("SYNC_FOLDERHIERARCHY_IGNORE_STORE", "FolderHierarchy:IgnoreStore");
294
+define("SYNC_FOLDERHIERARCHY_IGNORE_NOBCKENDFLD", "FolderHierarchy:IgnoreNoBackendFolder");
295
+define("SYNC_FOLDERHIERARCHY_IGNORE_BACKENDID", "FolderHierarchy:IgnoreBackendId");
296
+define("SYNC_FOLDERHIERARCHY_IGNORE_FLAGS", "FolderHierarchy:IgnoreFlags");
297
+define("SYNC_FOLDERHIERARCHY_IGNORE_TYPEREAL", "FolderHierarchy:TypeReal");
298 298
 
299 299
 // Code Page 8: MeetingResponse, all AS versions
300
-define("SYNC_MEETINGRESPONSE_CALENDARID","MeetingResponse:CalendarId");
301
-define("SYNC_MEETINGRESPONSE_FOLDERID","MeetingResponse:FolderId");
302
-define("SYNC_MEETINGRESPONSE_MEETINGRESPONSE","MeetingResponse:MeetingResponse");
303
-define("SYNC_MEETINGRESPONSE_REQUESTID","MeetingResponse:RequestId");
304
-define("SYNC_MEETINGRESPONSE_REQUEST","MeetingResponse:Request");
305
-define("SYNC_MEETINGRESPONSE_RESULT","MeetingResponse:Result");
306
-define("SYNC_MEETINGRESPONSE_STATUS","MeetingResponse:Status");
307
-define("SYNC_MEETINGRESPONSE_USERRESPONSE","MeetingResponse:UserResponse");
308
-define("SYNC_MEETINGRESPONSE_VERSION","MeetingResponse:Version"); // Not defined / deprecated
309
-define("SYNC_MEETINGRESPONSE_INSTANCEID","MeetingResponse:InstanceId"); // Since AS 14.1
300
+define("SYNC_MEETINGRESPONSE_CALENDARID", "MeetingResponse:CalendarId");
301
+define("SYNC_MEETINGRESPONSE_FOLDERID", "MeetingResponse:FolderId");
302
+define("SYNC_MEETINGRESPONSE_MEETINGRESPONSE", "MeetingResponse:MeetingResponse");
303
+define("SYNC_MEETINGRESPONSE_REQUESTID", "MeetingResponse:RequestId");
304
+define("SYNC_MEETINGRESPONSE_REQUEST", "MeetingResponse:Request");
305
+define("SYNC_MEETINGRESPONSE_RESULT", "MeetingResponse:Result");
306
+define("SYNC_MEETINGRESPONSE_STATUS", "MeetingResponse:Status");
307
+define("SYNC_MEETINGRESPONSE_USERRESPONSE", "MeetingResponse:UserResponse");
308
+define("SYNC_MEETINGRESPONSE_VERSION", "MeetingResponse:Version"); // Not defined / deprecated
309
+define("SYNC_MEETINGRESPONSE_INSTANCEID", "MeetingResponse:InstanceId"); // Since AS 14.1
310 310
 
311 311
 // Code Page 9: Tasks - POOMTASKS, all AS versions
312
-define("SYNC_POOMTASKS_BODY","POOMTASKS:Body"); // AirSyncBase Body is used since 12.0
313
-define("SYNC_POOMTASKS_BODYSIZE","POOMTASKS:BodySize"); // AirSyncBase Body is used since 12.0
314
-define("SYNC_POOMTASKS_BODYTRUNCATED","POOMTASKS:BodyTruncated"); // AirSyncBase Body is used since 12.0
315
-define("SYNC_POOMTASKS_CATEGORIES","POOMTASKS:Categories");
316
-define("SYNC_POOMTASKS_CATEGORY","POOMTASKS:Category");
317
-define("SYNC_POOMTASKS_COMPLETE","POOMTASKS:Complete");
318
-define("SYNC_POOMTASKS_DATECOMPLETED","POOMTASKS:DateCompleted");
319
-define("SYNC_POOMTASKS_DUEDATE","POOMTASKS:DueDate");
320
-define("SYNC_POOMTASKS_UTCDUEDATE","POOMTASKS:UtcDueDate");
321
-define("SYNC_POOMTASKS_IMPORTANCE","POOMTASKS:Importance");
322
-define("SYNC_POOMTASKS_RECURRENCE","POOMTASKS:Recurrence");
323
-define("SYNC_POOMTASKS_TYPE","POOMTASKS:Type");
324
-define("SYNC_POOMTASKS_START","POOMTASKS:Start");
325
-define("SYNC_POOMTASKS_UNTIL","POOMTASKS:Until");
326
-define("SYNC_POOMTASKS_OCCURRENCES","POOMTASKS:Occurrences");
327
-define("SYNC_POOMTASKS_INTERVAL","POOMTASKS:Interval");
328
-define("SYNC_POOMTASKS_DAYOFWEEK","POOMTASKS:DayOfWeek");
329
-define("SYNC_POOMTASKS_DAYOFMONTH","POOMTASKS:DayOfMonth");
330
-define("SYNC_POOMTASKS_WEEKOFMONTH","POOMTASKS:WeekOfMonth");
331
-define("SYNC_POOMTASKS_MONTHOFYEAR","POOMTASKS:MonthOfYear");
332
-define("SYNC_POOMTASKS_REGENERATE","POOMTASKS:Regenerate");
333
-define("SYNC_POOMTASKS_DEADOCCUR","POOMTASKS:DeadOccur");
334
-define("SYNC_POOMTASKS_REMINDERSET","POOMTASKS:ReminderSet");
335
-define("SYNC_POOMTASKS_REMINDERTIME","POOMTASKS:ReminderTime");
336
-define("SYNC_POOMTASKS_SENSITIVITY","POOMTASKS:Sensitivity");
337
-define("SYNC_POOMTASKS_STARTDATE","POOMTASKS:StartDate");
338
-define("SYNC_POOMTASKS_UTCSTARTDATE","POOMTASKS:UtcStartDate");
339
-define("SYNC_POOMTASKS_SUBJECT","POOMTASKS:Subject");
340
-define("SYNC_POOMTASKS_RTF","POOMTASKS:Rtf");
341
-define("SYNC_POOMTASKS_ORDINALDATE","POOMTASKS:OrdinalDate"); // Since 12.0
342
-define("SYNC_POOMTASKS_SUBORDINALDATE","POOMTASKS:SubOrdinalDate"); // Since 12.0
343
-define("SYNC_POOMTASKS_CALENDARTYPE","POOMTASKS:CalendarType"); // Since 14.0
344
-define("SYNC_POOMTASKS_ISLEAPMONTH","POOMTASKS:IsLeapMonth"); // Since 14.0
345
-define("SYNC_POOMTASKS_FIRSTDAYOFWEEK","POOMTASKS:FirstDayOfWeek"); // Since 14.0
312
+define("SYNC_POOMTASKS_BODY", "POOMTASKS:Body"); // AirSyncBase Body is used since 12.0
313
+define("SYNC_POOMTASKS_BODYSIZE", "POOMTASKS:BodySize"); // AirSyncBase Body is used since 12.0
314
+define("SYNC_POOMTASKS_BODYTRUNCATED", "POOMTASKS:BodyTruncated"); // AirSyncBase Body is used since 12.0
315
+define("SYNC_POOMTASKS_CATEGORIES", "POOMTASKS:Categories");
316
+define("SYNC_POOMTASKS_CATEGORY", "POOMTASKS:Category");
317
+define("SYNC_POOMTASKS_COMPLETE", "POOMTASKS:Complete");
318
+define("SYNC_POOMTASKS_DATECOMPLETED", "POOMTASKS:DateCompleted");
319
+define("SYNC_POOMTASKS_DUEDATE", "POOMTASKS:DueDate");
320
+define("SYNC_POOMTASKS_UTCDUEDATE", "POOMTASKS:UtcDueDate");
321
+define("SYNC_POOMTASKS_IMPORTANCE", "POOMTASKS:Importance");
322
+define("SYNC_POOMTASKS_RECURRENCE", "POOMTASKS:Recurrence");
323
+define("SYNC_POOMTASKS_TYPE", "POOMTASKS:Type");
324
+define("SYNC_POOMTASKS_START", "POOMTASKS:Start");
325
+define("SYNC_POOMTASKS_UNTIL", "POOMTASKS:Until");
326
+define("SYNC_POOMTASKS_OCCURRENCES", "POOMTASKS:Occurrences");
327
+define("SYNC_POOMTASKS_INTERVAL", "POOMTASKS:Interval");
328
+define("SYNC_POOMTASKS_DAYOFWEEK", "POOMTASKS:DayOfWeek");
329
+define("SYNC_POOMTASKS_DAYOFMONTH", "POOMTASKS:DayOfMonth");
330
+define("SYNC_POOMTASKS_WEEKOFMONTH", "POOMTASKS:WeekOfMonth");
331
+define("SYNC_POOMTASKS_MONTHOFYEAR", "POOMTASKS:MonthOfYear");
332
+define("SYNC_POOMTASKS_REGENERATE", "POOMTASKS:Regenerate");
333
+define("SYNC_POOMTASKS_DEADOCCUR", "POOMTASKS:DeadOccur");
334
+define("SYNC_POOMTASKS_REMINDERSET", "POOMTASKS:ReminderSet");
335
+define("SYNC_POOMTASKS_REMINDERTIME", "POOMTASKS:ReminderTime");
336
+define("SYNC_POOMTASKS_SENSITIVITY", "POOMTASKS:Sensitivity");
337
+define("SYNC_POOMTASKS_STARTDATE", "POOMTASKS:StartDate");
338
+define("SYNC_POOMTASKS_UTCSTARTDATE", "POOMTASKS:UtcStartDate");
339
+define("SYNC_POOMTASKS_SUBJECT", "POOMTASKS:Subject");
340
+define("SYNC_POOMTASKS_RTF", "POOMTASKS:Rtf");
341
+define("SYNC_POOMTASKS_ORDINALDATE", "POOMTASKS:OrdinalDate"); // Since 12.0
342
+define("SYNC_POOMTASKS_SUBORDINALDATE", "POOMTASKS:SubOrdinalDate"); // Since 12.0
343
+define("SYNC_POOMTASKS_CALENDARTYPE", "POOMTASKS:CalendarType"); // Since 14.0
344
+define("SYNC_POOMTASKS_ISLEAPMONTH", "POOMTASKS:IsLeapMonth"); // Since 14.0
345
+define("SYNC_POOMTASKS_FIRSTDAYOFWEEK", "POOMTASKS:FirstDayOfWeek"); // Since 14.0
346 346
 
347 347
 // Code Page 10: ResolveRecipients, all AS versions
348
-define("SYNC_RESOLVERECIPIENTS_RESOLVERECIPIENTS","ResolveRecipients:ResolveRecipients");
349
-define("SYNC_RESOLVERECIPIENTS_RESPONSE","ResolveRecipients:Response");
350
-define("SYNC_RESOLVERECIPIENTS_STATUS","ResolveRecipients:Status");
351
-define("SYNC_RESOLVERECIPIENTS_TYPE","ResolveRecipients:Type");
352
-define("SYNC_RESOLVERECIPIENTS_RECIPIENT","ResolveRecipients:Recipient");
353
-define("SYNC_RESOLVERECIPIENTS_DISPLAYNAME","ResolveRecipients:DisplayName");
354
-define("SYNC_RESOLVERECIPIENTS_EMAILADDRESS","ResolveRecipients:EmailAddress");
355
-define("SYNC_RESOLVERECIPIENTS_CERTIFICATES","ResolveRecipients:Certificates");
356
-define("SYNC_RESOLVERECIPIENTS_CERTIFICATE","ResolveRecipients:Certificate");
357
-define("SYNC_RESOLVERECIPIENTS_MINICERTIFICATE","ResolveRecipients:MiniCertificate");
358
-define("SYNC_RESOLVERECIPIENTS_OPTIONS","ResolveRecipients:Options");
359
-define("SYNC_RESOLVERECIPIENTS_TO","ResolveRecipients:To");
360
-define("SYNC_RESOLVERECIPIENTS_CERTIFICATERETRIEVAL","ResolveRecipients:CertificateRetrieval");
361
-define("SYNC_RESOLVERECIPIENTS_RECIPIENTCOUNT","ResolveRecipients:RecipientCount");
362
-define("SYNC_RESOLVERECIPIENTS_MAXCERTIFICATES","ResolveRecipients:MaxCertificates");
363
-define("SYNC_RESOLVERECIPIENTS_MAXAMBIGUOUSRECIPIENTS","ResolveRecipients:MaxAmbiguousRecipients");
364
-define("SYNC_RESOLVERECIPIENTS_CERTIFICATECOUNT","ResolveRecipients:CertificateCount");
365
-define("SYNC_RESOLVERECIPIENTS_AVAILABILITY","ResolveRecipients:Availability"); // Since 14.0
366
-define("SYNC_RESOLVERECIPIENTS_STARTTIME","ResolveRecipients:StartTime"); // Since 14.0
367
-define("SYNC_RESOLVERECIPIENTS_ENDTIME","ResolveRecipients:EndTime"); // Since 14.0
368
-define("SYNC_RESOLVERECIPIENTS_MERGEDFREEBUSY","ResolveRecipients:MergedFreeBusy"); // Since 14.0
369
-define("SYNC_RESOLVERECIPIENTS_PICTURE","ResolveRecipients:Picture"); // Since 14.1
370
-define("SYNC_RESOLVERECIPIENTS_MAXSIZE","ResolveRecipients:MaxSize"); // Since 14.1
371
-define("SYNC_RESOLVERECIPIENTS_DATA","ResolveRecipients:Data"); // Since 14.1
372
-define("SYNC_RESOLVERECIPIENTS_MAXPICTURES","ResolveRecipients:MaxPictures"); // Since 14.1
348
+define("SYNC_RESOLVERECIPIENTS_RESOLVERECIPIENTS", "ResolveRecipients:ResolveRecipients");
349
+define("SYNC_RESOLVERECIPIENTS_RESPONSE", "ResolveRecipients:Response");
350
+define("SYNC_RESOLVERECIPIENTS_STATUS", "ResolveRecipients:Status");
351
+define("SYNC_RESOLVERECIPIENTS_TYPE", "ResolveRecipients:Type");
352
+define("SYNC_RESOLVERECIPIENTS_RECIPIENT", "ResolveRecipients:Recipient");
353
+define("SYNC_RESOLVERECIPIENTS_DISPLAYNAME", "ResolveRecipients:DisplayName");
354
+define("SYNC_RESOLVERECIPIENTS_EMAILADDRESS", "ResolveRecipients:EmailAddress");
355
+define("SYNC_RESOLVERECIPIENTS_CERTIFICATES", "ResolveRecipients:Certificates");
356
+define("SYNC_RESOLVERECIPIENTS_CERTIFICATE", "ResolveRecipients:Certificate");
357
+define("SYNC_RESOLVERECIPIENTS_MINICERTIFICATE", "ResolveRecipients:MiniCertificate");
358
+define("SYNC_RESOLVERECIPIENTS_OPTIONS", "ResolveRecipients:Options");
359
+define("SYNC_RESOLVERECIPIENTS_TO", "ResolveRecipients:To");
360
+define("SYNC_RESOLVERECIPIENTS_CERTIFICATERETRIEVAL", "ResolveRecipients:CertificateRetrieval");
361
+define("SYNC_RESOLVERECIPIENTS_RECIPIENTCOUNT", "ResolveRecipients:RecipientCount");
362
+define("SYNC_RESOLVERECIPIENTS_MAXCERTIFICATES", "ResolveRecipients:MaxCertificates");
363
+define("SYNC_RESOLVERECIPIENTS_MAXAMBIGUOUSRECIPIENTS", "ResolveRecipients:MaxAmbiguousRecipients");
364
+define("SYNC_RESOLVERECIPIENTS_CERTIFICATECOUNT", "ResolveRecipients:CertificateCount");
365
+define("SYNC_RESOLVERECIPIENTS_AVAILABILITY", "ResolveRecipients:Availability"); // Since 14.0
366
+define("SYNC_RESOLVERECIPIENTS_STARTTIME", "ResolveRecipients:StartTime"); // Since 14.0
367
+define("SYNC_RESOLVERECIPIENTS_ENDTIME", "ResolveRecipients:EndTime"); // Since 14.0
368
+define("SYNC_RESOLVERECIPIENTS_MERGEDFREEBUSY", "ResolveRecipients:MergedFreeBusy"); // Since 14.0
369
+define("SYNC_RESOLVERECIPIENTS_PICTURE", "ResolveRecipients:Picture"); // Since 14.1
370
+define("SYNC_RESOLVERECIPIENTS_MAXSIZE", "ResolveRecipients:MaxSize"); // Since 14.1
371
+define("SYNC_RESOLVERECIPIENTS_DATA", "ResolveRecipients:Data"); // Since 14.1
372
+define("SYNC_RESOLVERECIPIENTS_MAXPICTURES", "ResolveRecipients:MaxPictures"); // Since 14.1
373 373
 
374 374
 // Code Page 11: ValidateCert, all AS versions
375
-define("SYNC_VALIDATECERT_VALIDATECERT","ValidateCert:ValidateCert");
376
-define("SYNC_VALIDATECERT_CERTIFICATES","ValidateCert:Certificates");
377
-define("SYNC_VALIDATECERT_CERTIFICATE","ValidateCert:Certificate");
378
-define("SYNC_VALIDATECERT_CERTIFICATECHAIN","ValidateCert:CertificateChain");
379
-define("SYNC_VALIDATECERT_CHECKCRL","ValidateCert:CheckCRL");
380
-define("SYNC_VALIDATECERT_STATUS","ValidateCert:Status");
375
+define("SYNC_VALIDATECERT_VALIDATECERT", "ValidateCert:ValidateCert");
376
+define("SYNC_VALIDATECERT_CERTIFICATES", "ValidateCert:Certificates");
377
+define("SYNC_VALIDATECERT_CERTIFICATE", "ValidateCert:Certificate");
378
+define("SYNC_VALIDATECERT_CERTIFICATECHAIN", "ValidateCert:CertificateChain");
379
+define("SYNC_VALIDATECERT_CHECKCRL", "ValidateCert:CheckCRL");
380
+define("SYNC_VALIDATECERT_STATUS", "ValidateCert:Status");
381 381
 
382 382
 // Code Page 12: Contacts2 - POOMCONTACTS2, all AS versions
383
-define("SYNC_POOMCONTACTS2_CUSTOMERID","POOMCONTACTS2:CustomerId");
384
-define("SYNC_POOMCONTACTS2_GOVERNMENTID","POOMCONTACTS2:GovernmentId");
385
-define("SYNC_POOMCONTACTS2_IMADDRESS","POOMCONTACTS2:IMAddress");
386
-define("SYNC_POOMCONTACTS2_IMADDRESS2","POOMCONTACTS2:IMAddress2");
387
-define("SYNC_POOMCONTACTS2_IMADDRESS3","POOMCONTACTS2:IMAddress3");
388
-define("SYNC_POOMCONTACTS2_MANAGERNAME","POOMCONTACTS2:ManagerName");
389
-define("SYNC_POOMCONTACTS2_COMPANYMAINPHONE","POOMCONTACTS2:CompanyMainPhone");
390
-define("SYNC_POOMCONTACTS2_ACCOUNTNAME","POOMCONTACTS2:AccountName");
391
-define("SYNC_POOMCONTACTS2_NICKNAME","POOMCONTACTS2:NickName");
392
-define("SYNC_POOMCONTACTS2_MMS","POOMCONTACTS2:MMS");
383
+define("SYNC_POOMCONTACTS2_CUSTOMERID", "POOMCONTACTS2:CustomerId");
384
+define("SYNC_POOMCONTACTS2_GOVERNMENTID", "POOMCONTACTS2:GovernmentId");
385
+define("SYNC_POOMCONTACTS2_IMADDRESS", "POOMCONTACTS2:IMAddress");
386
+define("SYNC_POOMCONTACTS2_IMADDRESS2", "POOMCONTACTS2:IMAddress2");
387
+define("SYNC_POOMCONTACTS2_IMADDRESS3", "POOMCONTACTS2:IMAddress3");
388
+define("SYNC_POOMCONTACTS2_MANAGERNAME", "POOMCONTACTS2:ManagerName");
389
+define("SYNC_POOMCONTACTS2_COMPANYMAINPHONE", "POOMCONTACTS2:CompanyMainPhone");
390
+define("SYNC_POOMCONTACTS2_ACCOUNTNAME", "POOMCONTACTS2:AccountName");
391
+define("SYNC_POOMCONTACTS2_NICKNAME", "POOMCONTACTS2:NickName");
392
+define("SYNC_POOMCONTACTS2_MMS", "POOMCONTACTS2:MMS");
393 393
 
394 394
 // Code Page 13: Ping, all AS versions
395
-define("SYNC_PING_PING","Ping:Ping");
396
-define("SYNC_PING_STATUS","Ping:Status");
395
+define("SYNC_PING_PING", "Ping:Ping");
396
+define("SYNC_PING_STATUS", "Ping:Status");
397 397
 define("SYNC_PING_LIFETIME", "Ping:LifeTime");
398 398
 define("SYNC_PING_FOLDERS", "Ping:Folders");
399 399
 define("SYNC_PING_FOLDER", "Ping:Folder");
@@ -486,9 +486,9 @@  discard block
 block discarded – undo
486 486
 define("SYNC_SEARCH_USERNAME", "Search:UserName"); // Since 12.1
487 487
 define("SYNC_SEARCH_PASSWORD", "Search:Password"); // Since 12.1
488 488
 define("SYNC_SEARCH_CONVERSATIONID", "Search:ConversationId"); // Since 14.0
489
-define("SYNC_SEARCH_PICTURE","Search:Picture"); // Since 14.1
490
-define("SYNC_SEARCH_MAXSIZE","Search:MaxSize"); // Since 14.1
491
-define("SYNC_SEARCH_MAXPICTURES","Search:MaxPictures"); // Since 14.1
489
+define("SYNC_SEARCH_PICTURE", "Search:Picture"); // Since 14.1
490
+define("SYNC_SEARCH_MAXSIZE", "Search:MaxSize"); // Since 14.1
491
+define("SYNC_SEARCH_MAXPICTURES", "Search:MaxPictures"); // Since 14.1
492 492
 
493 493
 // Code Page 16: GAL, all AS versions
494 494
 define("SYNC_GAL_DISPLAYNAME", "GAL:DisplayName");
@@ -502,9 +502,9 @@  discard block
 block discarded – undo
502 502
 define("SYNC_GAL_HOMEPHONE", "GAL:HomePhone");
503 503
 define("SYNC_GAL_MOBILEPHONE", "GAL:MobilePhone");
504 504
 define("SYNC_GAL_EMAILADDRESS", "GAL:EmailAddress");
505
-define("SYNC_GAL_PICTURE","GAL:Picture"); // Since 14.1
506
-define("SYNC_GAL_STATUS","GAL:Status"); // Since 14.1
507
-define("SYNC_GAL_DATA","GAL:Data"); // Since 14.1
505
+define("SYNC_GAL_PICTURE", "GAL:Picture"); // Since 14.1
506
+define("SYNC_GAL_STATUS", "GAL:Status"); // Since 14.1
507
+define("SYNC_GAL_DATA", "GAL:Data"); // Since 14.1
508 508
 
509 509
 // Code Page 17: AirSyncBase, Since 12.0
510 510
 define("SYNC_AIRSYNCBASE_BODYPREFERENCE", "AirSyncBase:BodyPreference");
@@ -622,8 +622,8 @@  discard block
 block discarded – undo
622 622
 define("SYNC_COMPOSEMAIL_STATUS", "ComposeMail:Status");
623 623
 define("SYNC_COMPOSEMAIL_ACCOUNTID", "ComposeMail:AccountId"); // Since 14.1
624 624
 // only for internal use - never to be streamed to the mobile
625
-define("SYNC_COMPOSEMAIL_REPLYFLAG","ComposeMail:ReplyFlag");
626
-define("SYNC_COMPOSEMAIL_FORWARDFLAG","ComposeMail:ForwardFlag");
625
+define("SYNC_COMPOSEMAIL_REPLYFLAG", "ComposeMail:ReplyFlag");
626
+define("SYNC_COMPOSEMAIL_FORWARDFLAG", "ComposeMail:ForwardFlag");
627 627
 
628 628
 // Code Page 22: Email2 - POOMMAIL2, Since 14.0
629 629
 define("SYNC_POOMMAIL2_UMCALLERID", "POOMMAIL2:UmCallerId");
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 define("SYNC_NOTES_CATEGORIES", "Notes:Categories");
650 650
 define("SYNC_NOTES_CATEGORY", "Notes:Category");
651 651
 // only for internal use - never to be streamed to the mobile
652
-define("SYNC_NOTES_IGNORE_COLOR","Notes:IgnoreColor");
652
+define("SYNC_NOTES_IGNORE_COLOR", "Notes:IgnoreColor");
653 653
 
654 654
 // Code Page 24: RightsManagement, Since 14.1
655 655
 define("SYNC_RIGHTSMANAGEMENT_SUPPORT", "RightsManagement:RightsManagementSupport");
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
 define("LOGLEVEL_DEVICEID", 64);
985 985
 define("LOGLEVEL_WBXMLSTACK", 128);
986 986
 
987
-define("LOGLEVEL_ALL", LOGLEVEL_FATAL | LOGLEVEL_ERROR | LOGLEVEL_WARN | LOGLEVEL_INFO | LOGLEVEL_DEBUG | LOGLEVEL_WBXML);
987
+define("LOGLEVEL_ALL", LOGLEVEL_FATAL|LOGLEVEL_ERROR|LOGLEVEL_WARN|LOGLEVEL_INFO|LOGLEVEL_DEBUG|LOGLEVEL_WBXML);
988 988
 
989 989
 define("BACKEND_DISCARD_DATA", 1);
990 990
 
@@ -1023,8 +1023,8 @@  discard block
 block discarded – undo
1023 1023
 define("SYNC_FILEAS_LASTCOMPANY", 6);
1024 1024
 define("SYNC_FILEAS_FIRSTCOMPANY", 7);
1025 1025
 
1026
-define ("SYNC_RESOLVERECIPIENTS_TYPE_GAL", 1);
1027
-define ("SYNC_RESOLVERECIPIENTS_TYPE_CONTACT", 2);
1026
+define("SYNC_RESOLVERECIPIENTS_TYPE_GAL", 1);
1027
+define("SYNC_RESOLVERECIPIENTS_TYPE_CONTACT", 2);
1028 1028
 
1029 1029
 define("SYNC_RESOLVERECIPIENTS_CERTRETRIEVE_NO", 1);
1030 1030
 define("SYNC_RESOLVERECIPIENTS_CERTRETRIEVE_FULL", 2);
Please login to merge, or discard this patch.
lib/core/bodypreference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 class BodyPreference extends StateObject {
11
-    protected $unsetdata = array(   'truncationsize' => false,
11
+    protected $unsetdata = array('truncationsize' => false,
12 12
                                     'allornone' => false,
13 13
                                     'preview' => false,
14 14
                                 );
Please login to merge, or discard this patch.
lib/core/pingtracking.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * @access public
29 29
      */
30 30
     public function __destruct() {
31
-        return $this->setDeviceUserData($this->type, array("pid:".self::$pid), self::$devid, self::$user, $subkey=-1, $doCas="deletekeys");
31
+        return $this->setDeviceUserData($this->type, array("pid:".self::$pid), self::$devid, self::$user, $subkey = -1, $doCas = "deletekeys");
32 32
     }
33 33
 
34 34
     /**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         // need microtime as connections sometimes start at the same second
44 44
         self::$start = microtime(true);
45 45
         $pingtracking = array("pid:".self::$pid => self::$start);
46
-        return $this->setDeviceUserData($this->type, $pingtracking, self::$devid, self::$user, $subkey=-1, $doCas="merge");
46
+        return $this->setDeviceUserData($this->type, $pingtracking, self::$devid, self::$user, $subkey = -1, $doCas = "merge");
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.