phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] sync/inc/class.bo_sync.inc.php, 1.41


From: nomail
Subject: [Phpgroupware-cvs] sync/inc/class.bo_sync.inc.php, 1.41
Date: Mon, 7 Jun 2004 17:56:51 +0200

Update of /sync/inc
Modified Files:
        Branch: 
          class.bo_sync.inc.php

date: 2004/06/07 15:56:51;  author: mkaemmerer;  state: Exp;  lines: +16 -8

Log Message:
- improved log messages
- timestamp handling for addData/replaceData
=====================================================================
Index: sync/inc/class.bo_sync.inc.php
diff -u sync/inc/class.bo_sync.inc.php:1.40 sync/inc/class.bo_sync.inc.php:1.41
--- sync/inc/class.bo_sync.inc.php:1.40 Mon May 17 15:47:37 2004
+++ sync/inc/class.bo_sync.inc.php      Mon Jun  7 15:56:51 2004
@@ -236,7 +236,7 @@
       }
       
       if ($this->debug)
-          error_log("Data dump: $data");
+        error_log("Data dump: $data");
         
       $result = array(1, $LUID, base64_encode($data));
       return $result;      
@@ -266,9 +266,14 @@
       if ($GUID == -1)
       {
         // no GUID found -> then we have to replace not add
-        $result = $this->ipc->addData($Itemdata, $mimetype);
+        
+        $data = $GLOBALS['phpgw']->session->appsession('session_data','sync');
+        
+        $result = $this->ipc->addData($Itemdata, $mimetype, '', 
$data['syncstart_timestamp']);
+        
         if ($this->debug)
-          error_log("setSyncItem: new Item with Result: $result");
+          error_log("setSyncItem: new item with result: $result and timestamp: 
".$data['syncstart_timestamp']);
+        
         if (! is_bool($result))
         {
           // set new GUID
@@ -279,9 +284,12 @@
       else
       {
         // LUID found -> then we have to add
+        $data = $GLOBALS['phpgw']->session->appsession('session_data','sync');
+        
         if ($this->debug)
-          error_log("setSyncItem: replacing Item $GUID");
-        $result = $this->ipc->replaceData($GUID, $Itemdata, $mimetype);
+          error_log("setSyncItem: replacing item $GUID, timestamp: 
".$data['syncstart_timestamp']);;
+        
+        $result = $this->ipc->replaceData($GUID, $Itemdata, $mimetype, '', 
$data['syncstart_timestamp']);
       }
       if (is_bool($result))
       {
@@ -409,7 +417,7 @@
           $retList[] = $LUID;
       }
       if ($this->debug)
-        error_log("Return value: ".serialize($retList));
+        error_log("getIDList return value: ".serialize($retList));
 
       return $retList;
     }
@@ -541,4 +549,4 @@
     }    
      
   }
-?>
+?> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]