1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-20 17:54:25 +01:00

more commenting out for debugging, added logging commands

This commit is contained in:
Tom Needham 2012-02-03 21:00:12 +00:00
parent 98bcad3593
commit 7ec723c753
2 changed files with 12 additions and 11 deletions

View File

@ -17,3 +17,7 @@ OC_App::addNavigationEntry( array( 'id' => 'bookmarks_index', 'order' => 70, 'hr
OC_App::registerPersonal('bookmarks', 'settings'); OC_App::registerPersonal('bookmarks', 'settings');
require_once('apps/bookmarks/lib/search.php'); require_once('apps/bookmarks/lib/search.php');
OC_Util::addScript('bookmarks','bookmarksearch'); OC_Util::addScript('bookmarks','bookmarksearch');
// Include the migration provider
require_once('apps/bookmarks/lib/migrate.php');

View File

@ -1,18 +1,15 @@
<?php <?php
class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{ class OC_Migrate_Provider_Bookmarks extends OC_Migrate_Provider{
$this->appid = 'bookmarks';
// Create the xml for the user supplied // Create the xml for the user supplied
function export($uid){ function export($uid){
$xml = ''; $xml = 'debugfrombookmarks';
$query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmakrs.user_id = ?"); //$query = OC_DB::prepare("SELECT * FROM *PREFIX*bookmarks WHERE *PREFIX*bookmakrs.user_id = ?");
$bookmarks = $query->execute($uid); //$bookmarks = $query->execute($uid);
OC_Log::write('user_migrate',print_r($bookmarks)); //foreach($bookmarks as $bookmark){
foreach($bookmarks as $bookmark){ // $xml .= '<bookmark>';
$xml .= '<bookmark>'; // $xml .='DATA WILL BE HERE';
$xml .='DATA WILL BE HERE'; // $xml .= '</bookmark>';
$xml .= '</bookmark>'; //}
}
return $xml; return $xml;
} }
} }