[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] sync/inc/class.bo_sync.inc.php, 1.44
From: |
nomail |
Subject: |
[Phpgroupware-cvs] sync/inc/class.bo_sync.inc.php, 1.44 |
Date: |
Tue, 15 Jun 2004 00:30:19 +0200 |
Update of /sync/inc
Modified Files:
Branch:
class.bo_sync.inc.php
date: 2004/06/14 22:30:19; author: mleonhardt; state: Exp; lines: +19 -3
Log Message:
- bugfixing readClientMappings for Delete
=====================================================================
Index: sync/inc/class.bo_sync.inc.php
diff -u sync/inc/class.bo_sync.inc.php:1.43 sync/inc/class.bo_sync.inc.php:1.44
--- sync/inc/class.bo_sync.inc.php:1.43 Wed Jun 9 22:34:01 2004
+++ sync/inc/class.bo_sync.inc.php Mon Jun 14 22:30:19 2004
@@ -413,8 +413,8 @@
}
$idlist = $this->ipc->getIdList($lastmod, 'syncable');
- $retList = array();
+ $retList = array();
foreach($idlist as $id)
{
// this may be optimized later to use only one SQL
@@ -431,7 +431,7 @@
// if $type is 2 than add only items without LUID
// and if $type is 3 add only items with LUID
if (($type == 1) or (($LUID[0] == '_') xor ($type != 2)))
- $retList[] = $LUID;
+ $retList[$id] = $LUID;
}
if ($type == 1)
@@ -524,6 +524,22 @@
}
/**
+ * Todo: Docu
+ */
+
+ function readClientMappings($deviceid, $source) {
+ $channelid = $this->so->GetChannelIDfromSourceAndDeviceID($deviceid,
$source);
+ $LUIDs = $this->so->GetAllLUIDs($channelid);
+ $result = array();
+ foreach($LUIDs as $LUID) {
+ // fake a mapping with GUID = LUID because we want to
+ // handle mapping in phpgw syncmodule for ourselves
+ $result[] = array((string) $LUID, (string) $LUID);
+ }
+ return $result;
+ }
+
+ /**
* delete mapping entries of a given LUID
*
* @param integer $deviceid is the deviceid of the device which whant to
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sync/inc/class.bo_sync.inc.php, 1.44,
nomail <=