mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-12-03 07:24:10 +01:00
Initial migration code, and basic export for bookmarks
This commit is contained in:
parent
6ddb9c1729
commit
98bcad3593
18
lib/migrate.php
Normal file
18
lib/migrate.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
|
||||||
|
$this->appid = 'bookmarks';
|
||||||
|
// Create the xml for the user supplied
|
||||||
|
function export($uid){
|
||||||
|
$xml = '';
|
||||||
|
$query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmakrs.user_id = ?");
|
||||||
|
$bookmarks = $query->execute($uid);
|
||||||
|
OC_Log::write('user_migrate',print_r($bookmarks));
|
||||||
|
foreach($bookmarks as $bookmark){
|
||||||
|
$xml .= '<bookmark>';
|
||||||
|
$xml .='DATA WILL BE HERE';
|
||||||
|
$xml .= '</bookmark>';
|
||||||
|
}
|
||||||
|
return $xml;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user