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.33


From: nomail
Subject: [Phpgroupware-cvs] sync/inc/class.bo_sync.inc.php, 1.33
Date: Sun, 23 May 2004 02:44:40 -0000

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

date: 2004/05/01 10:15:37;  author: mleonhardt;  state: Exp;  lines: +18 -1

Log Message:
- extended ui functionality
  - edit and show device description
  - show lastsync timestamps
=====================================================================
Index: sync/inc/class.bo_sync.inc.php
diff -u sync/inc/class.bo_sync.inc.php:1.32 sync/inc/class.bo_sync.inc.php:1.33
--- sync/inc/class.bo_sync.inc.php:1.32 Thu Apr 29 19:30:47 2004
+++ sync/inc/class.bo_sync.inc.php      Sat May  1 10:15:37 2004
@@ -504,6 +504,23 @@
       
       return $result;
     }
+    
+   /**
+    * get the devicedescription for $deviceid or if there is no one get the
+    * URI of the device 
+    *
+    * @param integer $deviceid thats name is requested
+    * @return string devicename 
+    */
+    
+    function getDeviceName($deviceid) {
+      $devinfo = $this->so->GetDeviceInfo($deviceid, true);
+      $description = $devinfo["description"];
+      if ($description != '')
+        return $description;
+      else
+        return $devinfo["uri"];       
+    }    
      
   }
 ?>




reply via email to

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