[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] sync/inc/class.ipc_sync.inc.php, 1.29
From: |
nomail |
Subject: |
[Phpgroupware-cvs] sync/inc/class.ipc_sync.inc.php, 1.29 |
Date: |
Sun, 20 Jun 2004 23:02:07 +0200 |
Update of /sync/inc
Modified Files:
Branch:
class.ipc_sync.inc.php
date: 2004/06/20 21:02:07; author: mkaemmerer; state: Exp; lines: +26 -12
Log Message:
- resolved all todo points and updated all documentation
=====================================================================
Index: sync/inc/class.ipc_sync.inc.php
diff -u sync/inc/class.ipc_sync.inc.php:1.28
sync/inc/class.ipc_sync.inc.php:1.29
--- sync/inc/class.ipc_sync.inc.php:1.28 Sat Jun 19 16:49:10 2004
+++ sync/inc/class.ipc_sync.inc.php Sun Jun 20 21:02:07 2004
@@ -223,11 +223,20 @@
}
}
+
/**
- * TODO: docu
+ * set batch of Items in phpGW, calls setSyncItem
+ *
+ * @param integer $deviceid is the deviceid of the device which whant to
+ * do the sync
+ * @param string $source Source-URI of the source to sync
+ * @param string $count - number of Items in $items
+ * @param mixed $Items array of Item
+ * @return boolean returns true if SyncItem is successful set
+ *
*/
- function setSyncItems($deviceid, $source, $count, $Items) {
+ function setSyncItems($deviceid, $source, $mimetype, $mimeversion, $count,
$Items) {
if ($this->debug)
error_log("setSyncItems: $deviceid, $source, $count, Items");
@@ -241,8 +250,6 @@
$deviceid,
$source,
$Items[$arraypointer], // LUID
-// $mimetype,
-// $version,
$Items[$arraypointer+1] // Data
)
);
@@ -475,19 +482,26 @@
* @return boolean true if successful
*/
- function deleteClientMappings($deviceid, $source, $deletedLUIDs) {
+ function deleteClientMappings($deviceid, $source, $deletedLUIDs)
+ {
if ($this->debug)
- error_log("addClientMappings: $deviceid, $source, $deletedLUIDs");
+ error_log("deleteClientMappings: $deviceid, $source, $deletedLUIDs");
- // TODO implemenation!
+ // not used in our implementation
+ // mapping is deleted in removeSyncItem already
return true;
}
/*
- * //Tdodo: !! add documentation
- *
- * possible values:
+ * handle a detected conflict
+ *
+ * There are for possible resolutions for a conflict:<br>
* serverwins, clientwins, duplicate, donothing
+ *
+ * @param integer $deviceid is the deviceid of the device which whant to
+ * do the sync
+ * @param string $source Source-URI of the source to sync
+ *
*/
function handleConflict($deviceid, $source, $LUID, $LData)
{
@@ -524,7 +538,7 @@
* //Tdodo: !! add documentation
*
*/
- function setDevInf($deviceuri, $devicename)
+ function setDevInf($deviceuri, $devicename)
{
if ($this->debug)
error_log("setDevInf($deviceuri, $devicename)");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sync/inc/class.ipc_sync.inc.php, 1.29,
nomail <=