[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.32
From: |
nomail |
Subject: |
[Phpgroupware-cvs] sync/inc/class.so_sync.inc.php, 1.32 |
Date: |
Sun, 23 May 2004 18:29:29 -0000 |
Update of /sync/inc
Modified Files:
Branch:
class.so_sync.inc.php
date: 2004/05/02 14:46:08; author: mkaemmerer; state: Exp; lines: +11 -3
Log Message:
- fixed getUsedSources
=====================================================================
Index: sync/inc/class.so_sync.inc.php
diff -u sync/inc/class.so_sync.inc.php:1.31 sync/inc/class.so_sync.inc.php:1.32
--- sync/inc/class.so_sync.inc.php:1.31 Sat May 1 16:46:04 2004
+++ sync/inc/class.so_sync.inc.php Sun May 2 14:46:08 2004
@@ -484,11 +484,19 @@
return -1;
}
- // ***** !!!
+ /**
+ * Get all sources actually by one specific synchronization device
+ *
+ * read from phpgw_syncsources and phpgw_syncchannels
+ *
+ * @param integer $deviceid unique device ID for internal devices database
+ * @return array of string (source URIs, e.g. 'notes', './contact')
+ *
+ */
function getUsedSources($deviceid)
{
- $GLOBALS['phpgw']->db->query("SELECT sourceid, uri FROM
phpgw_syncsources, phpgw_syncchannels where deviceid='$DeviceID' and and
phpgw_syncchannels.deviceid='".$deviceid."' and phpgw_syncchannels.sourceid =
phpgw_syncsources.sourceid",__LINE__,__FILE__);
+ $GLOBALS['phpgw']->db->query("SELECT uri FROM phpgw_syncsources,
phpgw_syncchannels where phpgw_syncchannels.deviceid='".$deviceid."' and
phpgw_syncchannels.sourceid = phpgw_syncsources.sourceid",__LINE__,__FILE__);
$result = array();
while ($GLOBALS['phpgw']->db->next_record())
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sync/inc/class.so_sync.inc.php, 1.32,
nomail <=