summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/bookmarks/lib')
-rw-r--r--apps/bookmarks/lib/migrate.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/bookmarks/lib/migrate.php b/apps/bookmarks/lib/migrate.php
new file mode 100644
index 00000000000..af76a4ef4de
--- /dev/null
+++ b/apps/bookmarks/lib/migrate.php
@@ -0,0 +1,14 @@
+<?php
+class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
+ // Create the xml for the user supplied
+ function export($uid){
+ $xml = 'test';
+ $query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmarks.user_id = ?");
+ $bookmarks =& $query->execute(array($uid));
+ while ($row = $bookmarks->fetchRow()) {
+ $xml .= $row[0] . "\n";
+ }
+ return $xml;
+ }
+}
+new OC_Migrate_Provider_Bookmarks('bookmarks'); \ No newline at end of file