Updated Migrate_provider bookmakr implementation
This commit is contained in:
parent
1133eaa679
commit
24c79c5bce
|
@ -2,14 +2,12 @@
|
||||||
class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
|
class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
|
||||||
// Create the xml for the user supplied
|
// Create the xml for the user supplied
|
||||||
function export($uid){
|
function export($uid){
|
||||||
$xml = 'debugfrombookmarks';
|
$xml = 'test';
|
||||||
//$query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmakrs.user_id = ?");
|
$query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmarks.user_id = ?");
|
||||||
//$bookmarks = $query->execute($uid);
|
$bookmarks =& $query->execute(array($uid));
|
||||||
//foreach($bookmarks as $bookmark){
|
while ($row = $bookmarks->fetchRow()) {
|
||||||
// $xml .= '<bookmark>';
|
$xml .= $row[0] . "\n";
|
||||||
// $xml .='DATA WILL BE HERE';
|
}
|
||||||
// $xml .= '</bookmark>';
|
|
||||||
//}
|
|
||||||
return $xml;
|
return $xml;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue