mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-11-30 05:24:09 +01:00
Updated Migrate_provider bookmakr implementation
This commit is contained in:
parent
6412e7e25e
commit
7016613b6e
@ -2,14 +2,12 @@
|
||||
class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
|
||||
// Create the xml for the user supplied
|
||||
function export($uid){
|
||||
$xml = 'debugfrombookmarks';
|
||||
//$query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmakrs.user_id = ?");
|
||||
//$bookmarks = $query->execute($uid);
|
||||
//foreach($bookmarks as $bookmark){
|
||||
// $xml .= '<bookmark>';
|
||||
// $xml .='DATA WILL BE HERE';
|
||||
// $xml .= '</bookmark>';
|
||||
//}
|
||||
$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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user