Changeset 233:3a034fd6b76c
- Timestamp:
- 05/10/11 13:48:32 (13 years ago)
- Branch:
- default
- Children:
- 234:e5b6717225f7, 235:e692c6cccedf
- Location:
- plugins/importExport/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/importExport/inc/class.dc.export.flat.php
r125 r233 106 106 $exp->exportTable('setting'); 107 107 $exp->exportTable('user'); 108 $exp->exportTable('pref'); 108 109 $exp->exportTable('permissions'); 109 110 $exp->exportTable('post'); -
plugins/importExport/inc/flat/class.dc.import.php
r0 r233 84 84 $this->cur_setting = $this->con->openCursor($this->prefix.'setting'); 85 85 $this->cur_user = $this->con->openCursor($this->prefix.'user'); 86 $this->cur_pref = $this->con->openCursor($this->prefix.'pref'); 86 87 $this->cur_permissions = $this->con->openCursor($this->prefix.'permissions'); 87 88 $this->cur_post = $this->con->openCursor($this->prefix.'post'); … … 253 254 $this->insertUser($line); 254 255 break; 256 case 'pref': 257 $this->insertPref($line); 258 break; 255 259 case 'permissions': 256 260 $this->insertPermissions($line); … … 363 367 364 368 $this->cur_setting->insert(); 369 } 370 371 private function insertPref($pref) 372 { 373 $this->cur_pref->clean(); 374 375 $this->cur_pref->pref_id = (string) $pref->pref_id; 376 $this->cur_pref->user_id = !$pref->user_id ? null : (string) $pref->user_id; 377 $this->cur_pref->pref_ws = (string) $pref->pref_ws; 378 $this->cur_pref->pref_value = (string) $pref->pref_value; 379 $this->cur_pref->pref_type = (string) $pref->pref_type; 380 $this->cur_pref->pref_label = (string) $pref->pref_label; 381 382 $this->cur_pref->insert(); 365 383 } 366 384
Note: See TracChangeset
for help on using the changeset viewer.