2012-02-03 20:32:06 +00:00
|
|
|
<?php
|
|
|
|
class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
|
|
|
|
// Create the xml for the user supplied
|
|
|
|
function export($uid){
|
2012-02-03 22:41:39 +00:00
|
|
|
$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";
|
|
|
|
}
|
2012-02-03 20:32:06 +00:00
|
|
|
return $xml;
|
|
|
|
}
|
|
|
|
}
|
2012-02-03 21:28:58 +00:00
|
|
|
new OC_Migrate_Provider_Bookmarks('bookmarks');
|