@@ -8,7 +8,7 @@ |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | class ContentParameters extends StateObject { |
| 11 | - protected $unsetdata = array( 'contentclass' => false, |
|
| 11 | + protected $unsetdata = array('contentclass' => false, |
|
| 12 | 12 | 'foldertype' => '', |
| 13 | 13 | 'conflict' => false, |
| 14 | 14 | 'deletesasmoves' => true, |
@@ -64,12 +64,13 @@ |
||
| 64 | 64 | * @return int/boolean returns false if value is not defined |
| 65 | 65 | */ |
| 66 | 66 | public function BodyPreference($type) { |
| 67 | - if (!isset($this->bodypref)) |
|
| 68 | - $this->bodypref = array(); |
|
| 67 | + if (!isset($this->bodypref)) { |
|
| 68 | + $this->bodypref = array(); |
|
| 69 | + } |
|
| 69 | 70 | |
| 70 | - if (isset($this->bodypref[$type])) |
|
| 71 | - return $this->bodypref[$type]; |
|
| 72 | - else { |
|
| 71 | + if (isset($this->bodypref[$type])) { |
|
| 72 | + return $this->bodypref[$type]; |
|
| 73 | + } else { |
|
| 73 | 74 | $asb = new BodyPreference(); |
| 74 | 75 | $arr = (array)$this->bodypref; |
| 75 | 76 | $arr[$type] = $asb; |
@@ -34,7 +34,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -46,8 +46,7 @@ discard block |
||
| 46 | 46 | function getKey($key) { |
| 47 | 47 | try { |
| 48 | 48 | return $this->redisObj->get($key); |
| 49 | - } |
|
| 50 | - catch(Exception $e) { |
|
| 49 | + } catch(Exception $e) { |
|
| 51 | 50 | ZLog::Write(LOGLEVEL_ERROR, sprintf("%s->getKey(): %s", get_class($this), $e->getMessage())); |
| 52 | 51 | } |
| 53 | 52 | } |
@@ -55,20 +54,17 @@ discard block |
||
| 55 | 54 | try { |
| 56 | 55 | if ($ttl > 0) { |
| 57 | 56 | return $this->redisObj->setEx($key, $ttl, $value); |
| 58 | - } |
|
| 59 | - else { |
|
| 57 | + } else { |
|
| 60 | 58 | return $this->redisObj->set($key, $value); |
| 61 | 59 | } |
| 62 | - } |
|
| 63 | - catch(Exception $e) { |
|
| 60 | + } catch(Exception $e) { |
|
| 64 | 61 | ZLog::Write(LOGLEVEL_ERROR, sprintf("%s->setKey(): %s", get_class($this), $e->getMessage())); |
| 65 | 62 | } |
| 66 | 63 | } |
| 67 | 64 | function delKey($key) { |
| 68 | 65 | try { |
| 69 | 66 | return $this->redisObj->del($key); |
| 70 | - } |
|
| 71 | - catch(Exception $e) { |
|
| 67 | + } catch(Exception $e) { |
|
| 72 | 68 | ZLog::Write(LOGLEVEL_ERROR, sprintf("%s->delKey(): %s", get_class($this), $e->getMessage())); |
| 73 | 69 | } |
| 74 | 70 | } |
@@ -45,7 +45,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -20,8 +20,9 @@ discard block |
||
| 20 | 20 | * @return array |
| 21 | 21 | */ |
| 22 | 22 | public function GetID() { |
| 23 | - if (!isset($this->SO_internalid)) |
|
| 24 | - $this->SO_internalid = sprintf('%04x%04x%04x', mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)); |
|
| 23 | + if (!isset($this->SO_internalid)) { |
|
| 24 | + $this->SO_internalid = sprintf('%04x%04x%04x', mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)); |
|
| 25 | + } |
|
| 25 | 26 | |
| 26 | 27 | return $this->SO_internalid; |
| 27 | 28 | } |
@@ -47,8 +48,9 @@ discard block |
||
| 47 | 48 | if (isset($this->data[$lname]) && |
| 48 | 49 | ( (is_scalar($value) && !is_array($value) && $this->data[$lname] === $value) || |
| 49 | 50 | (is_array($value) && is_array($this->data[$lname]) && $this->data[$lname] === $value) |
| 50 | - )) |
|
| 51 | - return false; |
|
| 51 | + )) { |
|
| 52 | + return false; |
|
| 53 | + } |
|
| 52 | 54 | |
| 53 | 55 | $this->data[$lname] = $value; |
| 54 | 56 | $this->changed = true; |
@@ -65,11 +67,13 @@ discard block |
||
| 65 | 67 | public function __get($name) { |
| 66 | 68 | $lname = strtolower($name); |
| 67 | 69 | |
| 68 | - if (array_key_exists($lname, $this->data)) |
|
| 69 | - return $this->data[$lname]; |
|
| 70 | + if (array_key_exists($lname, $this->data)) { |
|
| 71 | + return $this->data[$lname]; |
|
| 72 | + } |
|
| 70 | 73 | |
| 71 | - if (isset($this->unsetdata) && is_array($this->unsetdata) && array_key_exists($lname, $this->unsetdata)) |
|
| 72 | - return $this->unsetdata[$lname]; |
|
| 74 | + if (isset($this->unsetdata) && is_array($this->unsetdata) && array_key_exists($lname, $this->unsetdata)) { |
|
| 75 | + return $this->unsetdata[$lname]; |
|
| 76 | + } |
|
| 73 | 77 | |
| 74 | 78 | return null; |
| 75 | 79 | } |
@@ -133,13 +137,14 @@ discard block |
||
| 133 | 137 | else if ($operator == "get" && count($arguments) == 1) { |
| 134 | 138 | if (isset($this->$var)) { |
| 135 | 139 | return $this->$var; |
| 140 | + } else { |
|
| 141 | + return $arguments[0]; |
|
| 136 | 142 | } |
| 137 | - else |
|
| 138 | - return $arguments[0]; |
|
| 139 | 143 | } |
| 140 | 144 | |
| 141 | - if ($operator == "has" && count($arguments) == 0) |
|
| 142 | - return isset($this->$var); |
|
| 145 | + if ($operator == "has" && count($arguments) == 0) { |
|
| 146 | + return isset($this->$var); |
|
| 147 | + } |
|
| 143 | 148 | |
| 144 | 149 | if ($operator == "del" && count($arguments) == 0) { |
| 145 | 150 | unset($this->$var); |
@@ -201,8 +206,7 @@ discard block |
||
| 201 | 206 | $this->data[$prop] = new $val->gsSyncStateClass; |
| 202 | 207 | $this->data[$prop]->jsonDeserialize($val); |
| 203 | 208 | $this->data[$prop]->postUnserialize(); |
| 204 | - } |
|
| 205 | - else if (is_object($val)) { |
|
| 209 | + } else if (is_object($val)) { |
|
| 206 | 210 | // json_decode converts arrays into objects, convert them back to arrays |
| 207 | 211 | $this->data[$prop] = []; |
| 208 | 212 | foreach ($val as $k => $v) { |
@@ -211,19 +215,16 @@ discard block |
||
| 211 | 215 | // TODO: case should be removed when removing ASDevice backwards compatibility |
| 212 | 216 | if (strcasecmp($v->gsSyncStateClass, "ASDevice") == 0) { |
| 213 | 217 | $this->data[$prop][$k] = new ASDevice(Request::GetDeviceID(), Request::GetDeviceType(), Request::GetGETUser(), Request::GetUserAgent()); |
| 214 | - } |
|
| 215 | - else { |
|
| 218 | + } else { |
|
| 216 | 219 | $this->data[$prop][$k] = new $v->gsSyncStateClass; |
| 217 | 220 | } |
| 218 | 221 | $this->data[$prop][$k]->jsonDeserialize($v); |
| 219 | 222 | $this->data[$prop][$k]->postUnserialize(); |
| 220 | - } |
|
| 221 | - else { |
|
| 223 | + } else { |
|
| 222 | 224 | $this->data[$prop][$k] = $v; |
| 223 | 225 | } |
| 224 | 226 | } |
| 225 | - } |
|
| 226 | - else { |
|
| 227 | + } else { |
|
| 227 | 228 | $this->data[$prop] = $val; |
| 228 | 229 | } |
| 229 | 230 | } |
@@ -8,7 +8,7 @@ |
||
| 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 | ); |
@@ -276,7 +276,7 @@ |
||
| 276 | 276 | } |
| 277 | 277 | } |
| 278 | 278 | |
| 279 | - /** |
|
| 279 | + /** |
|
| 280 | 280 | * Writes the backendstorage data |
| 281 | 281 | * |
| 282 | 282 | * @param mixed $data |
@@ -145,7 +145,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -79,8 +79,9 @@ discard block |
||
| 79 | 79 | $synched = array(); |
| 80 | 80 | foreach ($this->device->GetAllFolderIds() as $folderid) { |
| 81 | 81 | $uuid = $this->device->GetFolderUUID($folderid); |
| 82 | - if ($uuid) |
|
| 83 | - $synched[] = $folderid; |
|
| 82 | + if ($uuid) { |
|
| 83 | + $synched[] = $folderid; |
|
| 84 | + } |
|
| 84 | 85 | } |
| 85 | 86 | return $synched; |
| 86 | 87 | } |
@@ -107,12 +108,12 @@ discard block |
||
| 107 | 108 | if ($data !== false) { |
| 108 | 109 | $this->synchedFolders[$folderid] = $data; |
| 109 | 110 | } |
| 110 | - } |
|
| 111 | - catch (StateNotFoundException $ex) { } |
|
| 111 | + } catch (StateNotFoundException $ex) { } |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | - if (!isset($this->synchedFolders[$folderid])) |
|
| 115 | - $this->synchedFolders[$folderid] = new SyncParameters(); |
|
| 114 | + if (!isset($this->synchedFolders[$folderid])) { |
|
| 115 | + $this->synchedFolders[$folderid] = new SyncParameters(); |
|
| 116 | + } |
|
| 116 | 117 | |
| 117 | 118 | return $this->synchedFolders[$folderid]; |
| 118 | 119 | } |
@@ -148,8 +149,7 @@ discard block |
||
| 148 | 149 | if(!isset($synckey) || $synckey == "0" || $synckey == false) { |
| 149 | 150 | $this->uuid = $this->getNewUuid(); |
| 150 | 151 | $this->newStateCounter = 1; |
| 151 | - } |
|
| 152 | - else { |
|
| 152 | + } else { |
|
| 153 | 153 | list($uuid, $counter) = self::ParseStateKey($synckey); |
| 154 | 154 | $this->uuid = $uuid; |
| 155 | 155 | $this->newStateCounter = $counter + 1; |
@@ -189,8 +189,9 @@ discard block |
||
| 189 | 189 | list($this->uuid, $this->oldStateCounter) = self::ParseStateKey($synckey); |
| 190 | 190 | |
| 191 | 191 | // make sure the hierarchy cache is in place |
| 192 | - if ($this->hierarchyOperation || $forceHierarchyLoading) |
|
| 193 | - $this->loadHierarchyCache($forceHierarchyLoading); |
|
| 192 | + if ($this->hierarchyOperation || $forceHierarchyLoading) { |
|
| 193 | + $this->loadHierarchyCache($forceHierarchyLoading); |
|
| 194 | + } |
|
| 194 | 195 | |
| 195 | 196 | // the state machine will discard any sync states before this one, as they are no longer required |
| 196 | 197 | return $this->statemachine->GetState($this->device->GetDeviceId(), IStateMachine::DEFTYPE, $this->uuid, $this->oldStateCounter, $this->deleteOldStates); |
@@ -209,12 +210,14 @@ discard block |
||
| 209 | 210 | */ |
| 210 | 211 | public function SetSyncState($synckey, $syncstate, $folderid = false) { |
| 211 | 212 | $internalkey = self::BuildStateKey($this->uuid, $this->newStateCounter); |
| 212 | - if ($this->oldStateCounter != 0 && $synckey != $internalkey) |
|
| 213 | - throw new StateInvalidException(sprintf("Unexpected synckey value oldcounter: '%s' synckey: '%s' internal key: '%s'", $this->oldStateCounter, $synckey, $internalkey)); |
|
| 213 | + if ($this->oldStateCounter != 0 && $synckey != $internalkey) { |
|
| 214 | + throw new StateInvalidException(sprintf("Unexpected synckey value oldcounter: '%s' synckey: '%s' internal key: '%s'", $this->oldStateCounter, $synckey, $internalkey)); |
|
| 215 | + } |
|
| 214 | 216 | |
| 215 | 217 | // make sure the hierarchy cache is also saved |
| 216 | - if ($this->hierarchyOperation) |
|
| 217 | - $this->saveHierarchyCache(); |
|
| 218 | + if ($this->hierarchyOperation) { |
|
| 219 | + $this->saveHierarchyCache(); |
|
| 220 | + } |
|
| 218 | 221 | |
| 219 | 222 | // announce this uuid to the device, while old uuid/states should be deleted |
| 220 | 223 | self::LinkState($this->device, $this->uuid, $folderid); |
@@ -229,13 +232,13 @@ discard block |
||
| 229 | 232 | * @return array/boolean false if not available |
| 230 | 233 | */ |
| 231 | 234 | public function GetSyncFailState() { |
| 232 | - if (!$this->uuid) |
|
| 233 | - return false; |
|
| 235 | + if (!$this->uuid) { |
|
| 236 | + return false; |
|
| 237 | + } |
|
| 234 | 238 | |
| 235 | 239 | try { |
| 236 | 240 | return $this->statemachine->GetState($this->device->GetDeviceId(), IStateMachine::FAILSAVE, $this->uuid, $this->oldStateCounter, $this->deleteOldStates); |
| 237 | - } |
|
| 238 | - catch (StateNotFoundException $snfex) { |
|
| 241 | + } catch (StateNotFoundException $snfex) { |
|
| 239 | 242 | return false; |
| 240 | 243 | } |
| 241 | 244 | } |
@@ -249,8 +252,9 @@ discard block |
||
| 249 | 252 | * @return boolean |
| 250 | 253 | */ |
| 251 | 254 | public function SetSyncFailState($syncstate) { |
| 252 | - if ($this->oldStateCounter == 0) |
|
| 253 | - return false; |
|
| 255 | + if ($this->oldStateCounter == 0) { |
|
| 256 | + return false; |
|
| 257 | + } |
|
| 254 | 258 | |
| 255 | 259 | return $this->statemachine->SetState($syncstate, $this->device->GetDeviceId(), IStateMachine::FAILSAVE, $this->uuid, $this->oldStateCounter); |
| 256 | 260 | } |
@@ -266,12 +270,12 @@ discard block |
||
| 266 | 270 | */ |
| 267 | 271 | public function GetBackendStorage($type = self::BACKENDSTORAGE_PERMANENT) { |
| 268 | 272 | if ($type == self::BACKENDSTORAGE_STATE) { |
| 269 | - if (!$this->uuid) |
|
| 270 | - throw new StateNotYetAvailableException(); |
|
| 273 | + if (!$this->uuid) { |
|
| 274 | + throw new StateNotYetAvailableException(); |
|
| 275 | + } |
|
| 271 | 276 | |
| 272 | 277 | return $this->statemachine->GetState($this->device->GetDeviceId(), IStateMachine::BACKENDSTORAGE, $this->uuid, $this->oldStateCounter, $this->deleteOldStates); |
| 273 | - } |
|
| 274 | - else { |
|
| 278 | + } else { |
|
| 275 | 279 | return $this->statemachine->GetState($this->device->GetDeviceId(), IStateMachine::BACKENDSTORAGE, false, $this->device->GetFirstSyncTime(), false); |
| 276 | 280 | } |
| 277 | 281 | } |
@@ -288,13 +292,13 @@ discard block |
||
| 288 | 292 | */ |
| 289 | 293 | public function SetBackendStorage($data, $type = self::BACKENDSTORAGE_PERMANENT) { |
| 290 | 294 | if ($type == self::BACKENDSTORAGE_STATE) { |
| 291 | - if (!$this->uuid) |
|
| 292 | - throw new StateNotYetAvailableException(); |
|
| 295 | + if (!$this->uuid) { |
|
| 296 | + throw new StateNotYetAvailableException(); |
|
| 297 | + } |
|
| 293 | 298 | |
| 294 | 299 | // TODO serialization should be done in the StateMachine |
| 295 | 300 | return $this->statemachine->SetState($data, $this->device->GetDeviceId(), IStateMachine::BACKENDSTORAGE, $this->uuid, $this->newStateCounter); |
| 296 | - } |
|
| 297 | - else { |
|
| 301 | + } else { |
|
| 298 | 302 | return $this->statemachine->SetState($data, $this->device->GetDeviceId(), IStateMachine::BACKENDSTORAGE, false, $this->device->GetFirstSyncTime()); |
| 299 | 303 | } |
| 300 | 304 | } |
@@ -311,11 +315,13 @@ discard block |
||
| 311 | 315 | * @return boolean |
| 312 | 316 | */ |
| 313 | 317 | public function InitializeFolderCache($folders) { |
| 314 | - if (!is_array($folders)) |
|
| 315 | - return false; |
|
| 318 | + if (!is_array($folders)) { |
|
| 319 | + return false; |
|
| 320 | + } |
|
| 316 | 321 | |
| 317 | - if (!isset($this->device)) |
|
| 318 | - throw new FatalException("ASDevice not initialized"); |
|
| 322 | + if (!isset($this->device)) { |
|
| 323 | + throw new FatalException("ASDevice not initialized"); |
|
| 324 | + } |
|
| 319 | 325 | |
| 320 | 326 | // redeclare this operation as hierarchyOperation |
| 321 | 327 | $this->hierarchyOperation = true; |
@@ -377,10 +383,11 @@ discard block |
||
| 377 | 383 | * @return boolean |
| 378 | 384 | */ |
| 379 | 385 | static public function UnLinkState(&$device, $folderid, $removeFromDevice = true, $retrieveUUIDFromDevice = true) { |
| 380 | - if ($retrieveUUIDFromDevice === true) |
|
| 381 | - $savedUuid = $device->GetFolderUUID($folderid); |
|
| 382 | - else |
|
| 383 | - $savedUuid = $retrieveUUIDFromDevice; |
|
| 386 | + if ($retrieveUUIDFromDevice === true) { |
|
| 387 | + $savedUuid = $device->GetFolderUUID($folderid); |
|
| 388 | + } else { |
|
| 389 | + $savedUuid = $retrieveUUIDFromDevice; |
|
| 390 | + } |
|
| 384 | 391 | |
| 385 | 392 | if ($savedUuid) { |
| 386 | 393 | ZLog::Write(LOGLEVEL_DEBUG, sprintf("StateManager::UnLinkState('%s'): saved state '%s' will be deleted.", $folderid, $savedUuid)); |
@@ -392,14 +399,16 @@ discard block |
||
| 392 | 399 | // remove all messages which could not be synched before |
| 393 | 400 | $device->RemoveIgnoredMessage($folderid, false); |
| 394 | 401 | |
| 395 | - if ($folderid === false && $savedUuid !== false) |
|
| 396 | - ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::HIERARCHY, $savedUuid, self::FIXEDHIERARCHYCOUNTER *2); |
|
| 402 | + if ($folderid === false && $savedUuid !== false) { |
|
| 403 | + ZPush::GetStateMachine()->CleanStates($device->GetDeviceId(), IStateMachine::HIERARCHY, $savedUuid, self::FIXEDHIERARCHYCOUNTER *2); |
|
| 404 | + } |
|
| 397 | 405 | } |
| 398 | 406 | // delete this id from the uuid cache |
| 399 | - if ($removeFromDevice) |
|
| 400 | - return $device->SetFolderUUID(false, $folderid); |
|
| 401 | - else |
|
| 402 | - return true; |
|
| 407 | + if ($removeFromDevice) { |
|
| 408 | + return $device->SetFolderUUID(false, $folderid); |
|
| 409 | + } else { |
|
| 410 | + return true; |
|
| 411 | + } |
|
| 403 | 412 | } |
| 404 | 413 | |
| 405 | 414 | /** |
@@ -413,8 +422,9 @@ discard block |
||
| 413 | 422 | */ |
| 414 | 423 | static public function ParseStateKey($synckey) { |
| 415 | 424 | $matches = array(); |
| 416 | - if(!preg_match('/^\{([0-9A-Za-z-]+)\}([0-9]+)$/', $synckey, $matches)) |
|
| 417 | - throw new StateInvalidException(sprintf("SyncKey '%s' is invalid", $synckey)); |
|
| 425 | + if(!preg_match('/^\{([0-9A-Za-z-]+)\}([0-9]+)$/', $synckey, $matches)) { |
|
| 426 | + throw new StateInvalidException(sprintf("SyncKey '%s' is invalid", $synckey)); |
|
| 427 | + } |
|
| 418 | 428 | |
| 419 | 429 | return array($matches[1], (int)$matches[2]); |
| 420 | 430 | } |
@@ -430,8 +440,9 @@ discard block |
||
| 430 | 440 | * @throws StateInvalidException |
| 431 | 441 | */ |
| 432 | 442 | static public function BuildStateKey($uuid, $counter) { |
| 433 | - if(!preg_match('/^([0-9A-Za-z-]+)$/', $uuid, $matches)) |
|
| 434 | - throw new StateInvalidException(sprintf("UUID '%s' is invalid", $uuid)); |
|
| 443 | + if(!preg_match('/^([0-9A-Za-z-]+)$/', $uuid, $matches)) { |
|
| 444 | + throw new StateInvalidException(sprintf("UUID '%s' is invalid", $uuid)); |
|
| 445 | + } |
|
| 435 | 446 | |
| 436 | 447 | return "{" . $uuid . "}" . $counter; |
| 437 | 448 | } |
@@ -452,8 +463,9 @@ discard block |
||
| 452 | 463 | * @throws StateNotFoundException |
| 453 | 464 | */ |
| 454 | 465 | private function loadHierarchyCache($forceLoading = false) { |
| 455 | - if (!$this->hierarchyOperation && $forceLoading == false) |
|
| 456 | - return false; |
|
| 466 | + if (!$this->hierarchyOperation && $forceLoading == false) { |
|
| 467 | + return false; |
|
| 468 | + } |
|
| 457 | 469 | |
| 458 | 470 | ZLog::Write(LOGLEVEL_DEBUG, sprintf("StateManager->loadHierarchyCache(): '%s-%s-%s-%d'", $this->device->GetDeviceId(), $this->uuid, IStateMachine::HIERARCHY, $this->oldStateCounter)); |
| 459 | 471 | |
@@ -479,17 +491,20 @@ discard block |
||
| 479 | 491 | * @throws StateInvalidException |
| 480 | 492 | */ |
| 481 | 493 | private function saveHierarchyCache($forceSaving = false) { |
| 482 | - if (!$this->hierarchyOperation && !$forceSaving) |
|
| 483 | - return false; |
|
| 494 | + if (!$this->hierarchyOperation && !$forceSaving) { |
|
| 495 | + return false; |
|
| 496 | + } |
|
| 484 | 497 | |
| 485 | 498 | // 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) ) |
|
| 487 | - self::LinkState($this->device, $this->uuid); |
|
| 499 | + if (($this->uuid != $this->device->GetFolderUUID() || $forceSaving) ) { |
|
| 500 | + self::LinkState($this->device, $this->uuid); |
|
| 501 | + } |
|
| 488 | 502 | |
| 489 | 503 | // check all folders and deleted folders to update data of ASDevice and delete old states |
| 490 | 504 | $hc = $this->device->getHierarchyCache(); |
| 491 | - foreach ($hc->GetDeletedFolders() as $delfolder) |
|
| 492 | - self::UnLinkState($this->device, $delfolder->serverid); |
|
| 505 | + foreach ($hc->GetDeletedFolders() as $delfolder) { |
|
| 506 | + self::UnLinkState($this->device, $delfolder->serverid); |
|
| 507 | + } |
|
| 493 | 508 | |
| 494 | 509 | foreach ($hc->ExportFolders() as $folder) { |
| 495 | 510 | $this->device->SetFolderType($folder->serverid, $folder->type); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $this->useragent = $useragent; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - /** |
|
| 67 | + /** |
|
| 68 | 68 | * Removes internal data from the object, so this data can not be exposed. |
| 69 | 69 | * |
| 70 | 70 | * @param boolean $stripHierarchyCache (opt) strips the hierarchy cache - default: true |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | return true; |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - /** |
|
| 93 | + /** |
|
| 94 | 94 | * Indicates if the object was just created |
| 95 | 95 | * |
| 96 | 96 | * @access public |
@@ -335,7 +335,7 @@ discard block |
||
| 335 | 335 | return false; |
| 336 | 336 | } |
| 337 | 337 | |
| 338 | - /** |
|
| 338 | + /** |
|
| 339 | 339 | * Returns the HierarchyCache Object |
| 340 | 340 | * |
| 341 | 341 | * @access public |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | return $this->hierarchyCache; |
| 350 | 350 | } |
| 351 | 351 | |
| 352 | - /** |
|
| 352 | + /** |
|
| 353 | 353 | * Returns all known folderids |
| 354 | 354 | * |
| 355 | 355 | * @access public |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | return array(); |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | - /** |
|
| 364 | + /** |
|
| 365 | 365 | * Returns a linked UUID for a folder id |
| 366 | 366 | * |
| 367 | 367 | * @param string $folderid (opt) if not set, Hierarchy UUID is returned |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | return false; |
| 380 | 380 | } |
| 381 | 381 | |
| 382 | - /** |
|
| 382 | + /** |
|
| 383 | 383 | * Link a UUID to a folder id |
| 384 | 384 | * If a boolean false UUID is sent, the relation is removed |
| 385 | 385 | * |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | return true; |
| 427 | 427 | } |
| 428 | 428 | |
| 429 | - /** |
|
| 429 | + /** |
|
| 430 | 430 | * Returns a foldertype for a folder already known to the mobile |
| 431 | 431 | * |
| 432 | 432 | * @param string $folderid |
@@ -441,7 +441,7 @@ discard block |
||
| 441 | 441 | return false; |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | - /** |
|
| 444 | + /** |
|
| 445 | 445 | * Sets the foldertype of a folder id |
| 446 | 446 | * |
| 447 | 447 | * @param string $folderid |
@@ -799,7 +799,7 @@ discard block |
||
| 799 | 799 | 'name' => $name, |
| 800 | 800 | 'type' => $type, |
| 801 | 801 | 'flags' => $flags, |
| 802 | - ); |
|
| 802 | + ); |
|
| 803 | 803 | $this->additionalfolders = $af; |
| 804 | 804 | $this->changed = true; |
| 805 | 805 | |
@@ -60,7 +60,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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) { |
@@ -82,8 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | if (!$stripHierarchyCache && $this->hierarchyCache !== false && $this->hierarchyCache instanceof ChangesMemoryWrapper) { |
| 84 | 84 | $this->hierarchyCache->StripData(); |
| 85 | - } |
|
| 86 | - else { |
|
| 85 | + } else { |
|
| 87 | 86 | unset($this->hierarchyCache); |
| 88 | 87 | } |
| 89 | 88 | |
@@ -122,8 +121,9 @@ discard block |
||
| 122 | 121 | * @return string |
| 123 | 122 | */ |
| 124 | 123 | public function GetDeviceUserAgent() { |
| 125 | - if (!isset($this->useragent) || !$this->useragent) |
|
| 126 | - return "unknown"; |
|
| 124 | + if (!isset($this->useragent) || !$this->useragent) { |
|
| 125 | + return "unknown"; |
|
| 126 | + } |
|
| 127 | 127 | |
| 128 | 128 | return $this->useragent; |
| 129 | 129 | } |
@@ -148,8 +148,9 @@ discard block |
||
| 148 | 148 | * @return boolean |
| 149 | 149 | */ |
| 150 | 150 | public function SetUserAgent($useragent) { |
| 151 | - if ($useragent == $this->useragent || $useragent === false || $useragent === Request::UNKNOWN) |
|
| 152 | - return true; |
|
| 151 | + if ($useragent == $this->useragent || $useragent === false || $useragent === Request::UNKNOWN) { |
|
| 152 | + return true; |
|
| 153 | + } |
|
| 153 | 154 | |
| 154 | 155 | // save the old user agent, if available |
| 155 | 156 | if ($this->useragent != "") { |
@@ -179,19 +180,22 @@ discard block |
||
| 179 | 180 | // we should have all previousily ignored messages in an id array |
| 180 | 181 | if (count($this->ignoredMessages) != count($this->ignoredMessageIds)) { |
| 181 | 182 | foreach($this->ignoredMessages as $oldMessage) { |
| 182 | - if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid])) |
|
| 183 | - $this->ignoredMessageIds[$oldMessage->data->folderid] = array(); |
|
| 183 | + if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid])) { |
|
| 184 | + $this->ignoredMessageIds[$oldMessage->data->folderid] = array(); |
|
| 185 | + } |
|
| 184 | 186 | $this->ignoredMessageIds[$oldMessage->data->folderid][] = $oldMessage->id; |
| 185 | 187 | } |
| 186 | 188 | } |
| 187 | 189 | |
| 188 | 190 | // try not to add the same message several times |
| 189 | 191 | if (isset($ignoredMessage->folderid) && isset($ignoredMessage->id)) { |
| 190 | - if (!isset($this->ignoredMessageIds[$ignoredMessage->folderid])) |
|
| 191 | - $this->ignoredMessageIds[$ignoredMessage->folderid] = array(); |
|
| 192 | + if (!isset($this->ignoredMessageIds[$ignoredMessage->folderid])) { |
|
| 193 | + $this->ignoredMessageIds[$ignoredMessage->folderid] = array(); |
|
| 194 | + } |
|
| 192 | 195 | |
| 193 | - if (in_array($ignoredMessage->id, $this->ignoredMessageIds[$ignoredMessage->folderid])) |
|
| 194 | - $this->RemoveIgnoredMessage($ignoredMessage->folderid, $ignoredMessage->id); |
|
| 196 | + if (in_array($ignoredMessage->id, $this->ignoredMessageIds[$ignoredMessage->folderid])) { |
|
| 197 | + $this->RemoveIgnoredMessage($ignoredMessage->folderid, $ignoredMessage->id); |
|
| 198 | + } |
|
| 195 | 199 | |
| 196 | 200 | $this->ignoredMessageIds[$ignoredMessage->folderid][] = $ignoredMessage->id; |
| 197 | 201 | $msges = $this->ignoredMessages; |
@@ -200,8 +204,7 @@ discard block |
||
| 200 | 204 | $this->changed = true; |
| 201 | 205 | |
| 202 | 206 | return true; |
| 203 | - } |
|
| 204 | - else { |
|
| 207 | + } else { |
|
| 205 | 208 | $msges = $this->ignoredMessages; |
| 206 | 209 | $msges[] = $ignoredMessage; |
| 207 | 210 | $this->ignoredMessages = $msges; |
@@ -224,8 +227,9 @@ discard block |
||
| 224 | 227 | // we should have all previousily ignored messages in an id array |
| 225 | 228 | if (count($this->ignoredMessages) != count($this->ignoredMessageIds)) { |
| 226 | 229 | foreach($this->ignoredMessages as $oldMessage) { |
| 227 | - if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid])) |
|
| 228 | - $this->ignoredMessageIds[$oldMessage->data->folderid] = array(); |
|
| 230 | + if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid])) { |
|
| 231 | + $this->ignoredMessageIds[$oldMessage->data->folderid] = array(); |
|
| 232 | + } |
|
| 229 | 233 | $this->ignoredMessageIds[$oldMessage->data->folderid][] = $oldMessage->data->id; |
| 230 | 234 | } |
| 231 | 235 | } |
@@ -243,14 +247,13 @@ discard block |
||
| 243 | 247 | $foundMessage = true; |
| 244 | 248 | if (count($this->ignoredMessageIds[$folderid]) == 1) { |
| 245 | 249 | unset($this->ignoredMessageIds[$folderid]); |
| 246 | - } |
|
| 247 | - else { |
|
| 250 | + } else { |
|
| 248 | 251 | unset($this->ignoredMessageIds[$folderid][array_search($id, $this->ignoredMessageIds[$folderid])]); |
| 249 | 252 | } |
| 250 | 253 | continue; |
| 254 | + } else { |
|
| 255 | + $newMessages[] = $im; |
|
| 251 | 256 | } |
| 252 | - else |
|
| 253 | - $newMessages[] = $im; |
|
| 254 | 257 | } |
| 255 | 258 | } |
| 256 | 259 | $this->ignoredMessages = $newMessages; |
@@ -274,8 +277,9 @@ discard block |
||
| 274 | 277 | // we should have all previousily ignored messages in an id array |
| 275 | 278 | if (count($this->ignoredMessages) != count($this->ignoredMessageIds)) { |
| 276 | 279 | foreach($this->ignoredMessages as $oldMessage) { |
| 277 | - if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid])) |
|
| 278 | - $this->ignoredMessageIds[$oldMessage->data->folderid] = array(); |
|
| 280 | + if (!isset($this->ignoredMessageIds[$oldMessage->data->folderid])) { |
|
| 281 | + $this->ignoredMessageIds[$oldMessage->data->folderid] = array(); |
|
| 282 | + } |
|
| 279 | 283 | $this->ignoredMessageIds[$oldMessage->data->folderid][] = $oldMessage->data->id; |
| 280 | 284 | } |
| 281 | 285 | } |
@@ -312,12 +316,13 @@ discard block |
||
| 312 | 316 | if ($hierarchydata !== false && $hierarchydata instanceof ChangesMemoryWrapper) { |
| 313 | 317 | $this->hierarchyCache = $hierarchydata; |
| 314 | 318 | $this->hierarchyCache->CopyOldState(); |
| 319 | + } else { |
|
| 320 | + $this->hierarchyCache = new ChangesMemoryWrapper(); |
|
| 315 | 321 | } |
| 316 | - else |
|
| 317 | - $this->hierarchyCache = new ChangesMemoryWrapper(); |
|
| 318 | 322 | |
| 319 | - if (is_array($hierarchydata)) |
|
| 320 | - return $this->hierarchyCache->ImportFolders($hierarchydata); |
|
| 323 | + if (is_array($hierarchydata)) { |
|
| 324 | + return $this->hierarchyCache->ImportFolders($hierarchydata); |
|
| 325 | + } |
|
| 321 | 326 | return true; |
| 322 | 327 | } |
| 323 | 328 | |
@@ -328,8 +333,9 @@ discard block |
||
| 328 | 333 | * @return string |
| 329 | 334 | */ |
| 330 | 335 | public function GetHierarchyCacheData() { |
| 331 | - if (isset($this->hierarchyCache)) |
|
| 332 | - return $this->hierarchyCache; |
|
| 336 | + if (isset($this->hierarchyCache)) { |
|
| 337 | + return $this->hierarchyCache; |
|
| 338 | + } |
|
| 333 | 339 | |
| 334 | 340 | ZLog::Write(LOGLEVEL_WARN, "ASDevice->GetHierarchyCacheData() has no data! HierarchyCache probably never initialized."); |
| 335 | 341 | return false; |
@@ -342,8 +348,9 @@ discard block |
||
| 342 | 348 | * @return object HierarchyCache |
| 343 | 349 | */ |
| 344 | 350 | public function GetHierarchyCache() { |
| 345 | - if (!isset($this->hierarchyCache)) |
|
| 346 | - $this->SetHierarchyCache(); |
|
| 351 | + if (!isset($this->hierarchyCache)) { |
|
| 352 | + $this->SetHierarchyCache(); |
|
| 353 | + } |
|
| 347 | 354 | |
| 348 | 355 | ZLog::Write(LOGLEVEL_DEBUG, "ASDevice->GetHierarchyCache(): ". $this->hierarchyCache->GetStat()); |
| 349 | 356 | return $this->hierarchyCache; |
@@ -356,8 +363,9 @@ discard block |
||
| 356 | 363 | * @return array |
| 357 | 364 | */ |
| 358 | 365 | public function GetAllFolderIds() { |
| 359 | - if (isset($this->contentData) && is_array($this->contentData)) |
|
| 360 | - return array_keys($this->contentData); |
|
| 366 | + if (isset($this->contentData) && is_array($this->contentData)) { |
|
| 367 | + return array_keys($this->contentData); |
|
| 368 | + } |
|
| 361 | 369 | return array(); |
| 362 | 370 | } |
| 363 | 371 | |
@@ -372,8 +380,7 @@ discard block |
||
| 372 | 380 | public function GetFolderUUID($folderid = false) { |
| 373 | 381 | if ($folderid === false) { |
| 374 | 382 | return (isset($this->hierarchyUuid) && $this->hierarchyUuid !== self::UNDEFINED) ? $this->hierarchyUuid : false; |
| 375 | - } |
|
| 376 | - else if (isset($this->contentData[$folderid]->{self::FOLDERUUID})) { |
|
| 383 | + } else if (isset($this->contentData[$folderid]->{self::FOLDERUUID})) { |
|
| 377 | 384 | return $this->contentData[$folderid]->{self::FOLDERUUID}; |
| 378 | 385 | } |
| 379 | 386 | return false; |
@@ -400,8 +407,7 @@ discard block |
||
| 400 | 407 | $this->backend2folderidCache = false; |
| 401 | 408 | } |
| 402 | 409 | $this->changed = true; |
| 403 | - } |
|
| 404 | - else { |
|
| 410 | + } else { |
|
| 405 | 411 | $contentData = $this->contentData; |
| 406 | 412 | |
| 407 | 413 | if (!isset($contentData[$folderid])) { |
@@ -415,8 +421,7 @@ discard block |
||
| 415 | 421 | |
| 416 | 422 | if ($uuid) { |
| 417 | 423 | $contentData[$folderid]->{self::FOLDERUUID} = $uuid; |
| 418 | - } |
|
| 419 | - else { |
|
| 424 | + } else { |
|
| 420 | 425 | $contentData[$folderid]->{self::FOLDERUUID} = false; |
| 421 | 426 | } |
| 422 | 427 | |
@@ -610,9 +615,10 @@ discard block |
||
| 610 | 615 | public function GetSupportedFields($folderid) { |
| 611 | 616 | if (isset($this->contentData) && isset($this->contentData[$folderid]) && |
| 612 | 617 | isset($this->contentData[$folderid]->{self::FOLDERUUID}) && $this->contentData[$folderid]->{self::FOLDERUUID} !== false && |
| 613 | - isset($this->contentData[$folderid]->{self::FOLDERSUPPORTEDFIELDS}) ) |
|
| 614 | - |
|
| 618 | + isset($this->contentData[$folderid]->{self::FOLDERSUPPORTEDFIELDS}) ) { |
|
| 619 | + |
|
| 615 | 620 | return $this->contentData[$folderid]->{self::FOLDERSUPPORTEDFIELDS}; |
| 621 | + } |
|
| 616 | 622 | |
| 617 | 623 | return false; |
| 618 | 624 | } |
@@ -671,8 +677,7 @@ discard block |
||
| 671 | 677 | } |
| 672 | 678 | if ($status !== false) { |
| 673 | 679 | $contentData[$folderid]->{self::FOLDERSYNCSTATUS} = $status; |
| 674 | - } |
|
| 675 | - else if (isset($contentData[$folderid]->{self::FOLDERSYNCSTATUS})) { |
|
| 680 | + } else if (isset($contentData[$folderid]->{self::FOLDERSYNCSTATUS})) { |
|
| 676 | 681 | unset($contentData[$folderid]->{self::FOLDERSYNCSTATUS}); |
| 677 | 682 | } |
| 678 | 683 | |
@@ -757,7 +762,9 @@ discard block |
||
| 757 | 762 | foreach ($this->additionalfolders as $k => $folder) { |
| 758 | 763 | // This is fixed in fixstates, but we could keep this here a while longer. |
| 759 | 764 | // TODO: remove line at a later point. |
| 760 | - if (!isset($folder['parentid'])) $folder['parentid'] = "0"; |
|
| 765 | + if (!isset($folder['parentid'])) { |
|
| 766 | + $folder['parentid'] = "0"; |
|
| 767 | + } |
|
| 761 | 768 | |
| 762 | 769 | if ($folder['name'] == $name && $folder['parentid'] == $parentid) { |
| 763 | 770 | ZLog::Write(LOGLEVEL_ERROR, sprintf("ASDevice->AddAdditionalFolder(): folder can not be added because there is already an additional folder with the same name in the same folder: '%s'", $name)); |
@@ -919,8 +926,7 @@ discard block |
||
| 919 | 926 | foreach($this->additionalfolders as $keepFolder) { |
| 920 | 927 | if ($keepFolder['store'] !== $store) { |
| 921 | 928 | $newAF[$keepFolder['folderid']] = $keepFolder; |
| 922 | - } |
|
| 923 | - else { |
|
| 929 | + } else { |
|
| 924 | 930 | $noDupsCheck[$keepFolder['folderid']] = true; |
| 925 | 931 | } |
| 926 | 932 | } |
@@ -133,7 +133,7 @@ |
||
| 133 | 133 | } |
| 134 | 134 | |
| 135 | 135 | |
| 136 | - /** |
|
| 136 | + /** |
|
| 137 | 137 | * Generates a new Policykey |
| 138 | 138 | * |
| 139 | 139 | * @access public |
@@ -41,13 +41,13 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -80,8 +80,7 @@ discard block |
||
| 80 | 80 | $this->policyHash = $d[self::KEY_POLICYHASH]; |
| 81 | 81 | $this->updatetime = $d[self::KEY_UPDATETIME]; |
| 82 | 82 | $this->loadtime = time(); |
| 83 | - } |
|
| 84 | - else { |
|
| 83 | + } else { |
|
| 85 | 84 | $this->policyKey = ASDevice::UNDEFINED; |
| 86 | 85 | $this->policyHash = ASDevice::UNDEFINED; |
| 87 | 86 | $this->updatetime = 0; |
@@ -115,16 +114,16 @@ discard block |
||
| 115 | 114 | // check if policiykey matches |
| 116 | 115 | $p = ( ($policykey !== ASDevice::UNDEFINED && $policykey != $this->policyKey) || $this->policyKey == ASDevice::UNDEFINED ); |
| 117 | 116 | |
| 118 | - if (!$noDebug || $p) |
|
| 119 | - ZLog::Write(LOGLEVEL_DEBUG, sprintf("ProvisioningManager->ProvisioningRequired('%s') saved device key '%s': %s", $policykey, $this->policyKey, Utils::PrintAsString($p))); |
|
| 117 | + if (!$noDebug || $p) { |
|
| 118 | + ZLog::Write(LOGLEVEL_DEBUG, sprintf("ProvisioningManager->ProvisioningRequired('%s') saved device key '%s': %s", $policykey, $this->policyKey, Utils::PrintAsString($p))); |
|
| 119 | + } |
|
| 120 | 120 | |
| 121 | 121 | if ($checkPolicies) { |
| 122 | 122 | $policyHash = $this->GetProvisioningObject()->GetPolicyHash(); |
| 123 | 123 | if ($this->policyHash !== ASDevice::UNDEFINED && $this->policyHash != $policyHash) { |
| 124 | 124 | $p = true; |
| 125 | 125 | ZLog::Write(LOGLEVEL_INFO, sprintf("ProvisioningManager->ProvisioningRequired(): saved policy hash '%s' changed to '%s'. Provisioning required.", $this->policyHash, $policyHash)); |
| 126 | - } |
|
| 127 | - elseif (!$noDebug) { |
|
| 126 | + } elseif (!$noDebug) { |
|
| 128 | 127 | ZLog::Write(LOGLEVEL_DEBUG, sprintf("ProvisioningManager->ProvisioningRequired() saved policy hash '%s' matches", $policyHash)); |
| 129 | 128 | } |
| 130 | 129 | } |
@@ -191,8 +190,7 @@ discard block |
||
| 191 | 190 | if ($status >= SYNC_PROVISION_RWSTATUS_PENDING) { |
| 192 | 191 | ZLog::Write(LOGLEVEL_INFO, sprintf("ProvisioningManager->GetProvisioningWipeStatus(): REMOTE WIPE due for user '%s' on device '%s' - status: '%s'", self::$user, self::$devid, $status)); |
| 193 | 192 | $status = SYNC_PROVISION_RWSTATUS_PENDING; |
| 194 | - } |
|
| 195 | - else { |
|
| 193 | + } else { |
|
| 196 | 194 | ZLog::Write(LOGLEVEL_INFO, sprintf("ProvisioningManager->GetProvisioningWipeStatus(): no remote wipe pending - status: '%s'", $status)); |
| 197 | 195 | } |
| 198 | 196 | } |
@@ -8,159 +8,159 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -8,7 +8,7 @@ |
||
| 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 | ); |