[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] sync/inc/class.so_sync.inc.php, 1.45
From: |
nomail |
Subject: |
[Phpgroupware-cvs] sync/inc/class.so_sync.inc.php, 1.45 |
Date: |
Thu, 17 Jun 2004 18:00:26 +0200 |
Update of /sync/inc
Modified Files:
Branch:
class.so_sync.inc.php
date: 2004/06/17 16:00:26; author: mleonhardt; state: Exp; lines: +36 -1
Log Message:
- completed sourcelist editor
- now using official get admin acl for admin-functionality
- changed mimetype handling
=====================================================================
Index: sync/inc/class.so_sync.inc.php
diff -u sync/inc/class.so_sync.inc.php:1.44 sync/inc/class.so_sync.inc.php:1.45
--- sync/inc/class.so_sync.inc.php:1.44 Sun Jun 6 15:45:18 2004
+++ sync/inc/class.so_sync.inc.php Thu Jun 17 16:00:26 2004
@@ -763,6 +763,22 @@
}
/**
+ * Delete source referenced by sourceid
+ *
+ * @param integer sourceid (index of phpgw_syncsource)
+ * @return integer >= 0 if successfull, < 0 in case of error
+ */
+
+ function DeleteSource($sourceid)
+ {
+ $GLOBALS['phpgw']->db->query("DELETE FROM phpgw_syncsources WHERE
sourceid='$sourceid'",__LINE__,__FILE__);
+ if ($GLOBALS['phpgw']->db->Error)
+ return -1;
+ else
+ return 0;
+ }
+
+ /**
* Delete all mappings referenced by channelid
*
* @param integer channelid
@@ -815,6 +831,25 @@
}
/**
+ * set the Source settings of the Source with $sourceid (has to exist in
the db yet)
+ *
+ * @param integer $sourceid unique Source ID for internal Sources database
+ * @param string $uri new identifier URI of the Source
+ * @param string $appmodule applicationmodule responsible for the source
+ * @return integer >= 0 if successfull, < 0 in case of error
+ */
+
+ function SetSourceSettings($sourceid, $uri, $appmodule)
+ {
+ $GLOBALS['phpgw']->db->query("UPDATE phpgw_syncsources SET uri='$uri',
modulename='$appmodule' " .
+ " WHERE sourceid='$sourceid'",__LINE__,__FILE__);
+ if ($GLOBALS['phpgw']->db->Error)
+ return -1;
+ else
+ return 0;
+ }
+
+ /**
* reset the sync channel to do a fullsync (= slowsync) on next
synchronization
*
* the sync channel is precise defined by $deviceid, $source
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sync/inc/class.so_sync.inc.php, 1.45,
nomail <=