Skip to content

Commit

Permalink
- Backing up new fields...
Browse files Browse the repository at this point in the history
- No restoring yet... :(
  • Loading branch information
willcast committed Oct 19, 2003
1 parent f257277 commit 48972ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/glossary/backuplib.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function glossary_backup_mods($bf,$preferences) {
fwrite ($bf,full_tag("SHOWALPHABET",4,false,$glossary->showalphabet));
fwrite ($bf,full_tag("SHOWALL",4,false,$glossary->showall));
fwrite ($bf,full_tag("ALLOWCOMMENTS",4,false,$glossary->allowcomments));
fwrite ($bf,full_tag("USEDYNALINK",4,false,$glossary->usedynalink));
fwrite ($bf,full_tag("TIMECREATED",4,false,$glossary->timecreated));
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$glossary->timemodified));

Expand Down Expand Up @@ -138,6 +139,9 @@ function backup_glossary_entries ($bf,$preferences,$glossary, $userinfo) {
fwrite ($bf,full_tag("FORMAT",6,false,$glo_ent->format));
fwrite ($bf,full_tag("ATTACHMENT",6,false,$glo_ent->attachment));
fwrite ($bf,full_tag("SOURCEGLOSSARYID",6,false,$glo_ent->sourceglossaryid));
fwrite ($bf,full_tag("USEDYNALINK",4,false,$glo_ent->usedynalink));
fwrite ($bf,full_tag("CASESENSITIVE",4,false,$glo_ent->casesensitive));
fwrite ($bf,full_tag("FULLMATCH",4,false,$glo_ent->fullmatch));
fwrite ($bf,full_tag("TIMECREATED",6,false,$glo_ent->timecreated));
fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$glo_ent->timemodified));
fwrite ($bf,full_tag("TEACHERENTRY",6,false,$glo_ent->teacherentry));
Expand Down
4 changes: 4 additions & 0 deletions mod/glossary/restorelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function glossary_restore_mods($mod,$restore) {
$glossary->showalphabet = backup_todb($info['MOD']['#']['SHOWALPHABET']['0']['#']);
$glossary->showall = backup_todb($info['MOD']['#']['SHOWALL']['0']['#']);
$glossary->allowcomments = backup_todb($info['MOD']['#']['ALLOWCOMMENTS']['0']['#']);
$glossary->usedynalink = backup_todb($info['MOD']['#']['USEDYNALINK']['0']['#']);
$glossary->timecreated = backup_todb($info['MOD']['#']['TIMECREATED']['0']['#']);
$glossary->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);

Expand Down Expand Up @@ -112,6 +113,9 @@ function glossary_entries_restore_mods($old_glossary_id,$new_glossary_id,$info,$
$entry->format = backup_todb($ent_info['#']['FORMAT']['0']['#']);
$entry->attachment = backup_todb($ent_info['#']['ATTACHMENT']['0']['#']);
$entry->sourceglossaryid = backup_todb($ent_info['#']['SOURCEGLOSSARYID']['0']['#']);
$entry->usedynalink = backup_todb($ent_info['#']['USEDYNALINK']['0']['#']);
$entry->casesensitive = backup_todb($ent_info['#']['CASESENSITIVE']['0']['#']);
$entry->fullmatch = backup_todb($ent_info['#']['FULLMATCH']['0']['#']);
$entry->timecreated = backup_todb($ent_info['#']['TIMECREATED']['0']['#']);
$entry->timemodified = backup_todb($ent_info['#']['TIMEMODIFIED']['0']['#']);
$entry->teacherentry = backup_todb($ent_info['#']['TEACHERENTRY']['0']['#']);
Expand Down

0 comments on commit 48972ec

Please sign in to comment.