2009-11-01 15:24:58 +00:00
|
|
|
<?php
|
2004-06-07 13:28:59 +00:00
|
|
|
//This php script contains all the stuff to backup/restore
|
|
|
|
//reservation mods
|
|
|
|
|
|
|
|
//This is the "graphical" structure of the scorm mod:
|
|
|
|
//
|
2005-05-23 06:56:10 +00:00
|
|
|
// scorm
|
2005-04-01 15:53:32 +00:00
|
|
|
// (CL,pk->id)---------------------
|
2005-05-23 06:56:10 +00:00
|
|
|
// | |
|
|
|
|
// | |
|
|
|
|
// | |
|
|
|
|
// scorm_scoes |
|
|
|
|
// (UL,pk->id, fk->scorm) |
|
|
|
|
// | |
|
|
|
|
// | |
|
|
|
|
// | |
|
|
|
|
// scorm_scoes_track |
|
|
|
|
// (UL,pk->id, fk->scormid, fk->scoid, fk->userid)--
|
2004-06-07 13:28:59 +00:00
|
|
|
//
|
|
|
|
// Meaning: pk->primary key field of the table
|
|
|
|
// fk->foreign key to link with parent
|
|
|
|
// nt->nested field (recursive data)
|
|
|
|
// CL->course level info
|
|
|
|
// UL->user level info
|
|
|
|
// files->table may have files)
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
2005-07-04 18:56:03 +00:00
|
|
|
|
2004-06-07 13:28:59 +00:00
|
|
|
//This function returns a log record with all the necessay transformations
|
|
|
|
//done. It's used by restore_log_module() to restore modules log.
|
|
|
|
function scorm_restore_logs($restore,$log) {
|
2005-05-23 06:56:10 +00:00
|
|
|
|
2004-06-07 13:28:59 +00:00
|
|
|
$status = true;
|
2005-05-23 06:56:10 +00:00
|
|
|
|
2004-06-07 13:28:59 +00:00
|
|
|
return $status;
|
|
|
|
}
|
2009-11-01 15:24:58 +00:00
|
|
|
|