moodle/mod/scorm/restorelib.php

39 lines
1.4 KiB
PHP
Raw Normal View History

<?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:
//
// scorm
// (CL,pk->id)---------------------
// | |
// | |
// | |
// 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)
//
//-----------------------------------------------------------
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) {
2004-06-07 13:28:59 +00:00
$status = true;
2004-06-07 13:28:59 +00:00
return $status;
}