Merge branch '2014.11-develop' into 2015.11
[tine20] / tine20 / Calendar / Convert / Event / VCalendar / Factory.php
index 9a59cba..621c13a 100644 (file)
@@ -134,4 +134,22 @@ class Calendar_Convert_Event_VCalendar_Factory
         
         return array($backend, $version);
     }
+
+    /**
+     * parse useragent and return backend and version
+     *
+     * @return array
+     */
+    static public function supportsSyncToken($_userAgent)
+    {
+        list($backend, $version) = self::parseUserAgent($_userAgent);
+        switch($backend)
+        {
+            case self::CLIENT_MACOSX:
+                if (version_compare($version, '10.9', '>='))
+                    return true;
+                break;
+        }
+        return false;
+    }
 }