2010-09-07 08:53:58 +00:00
|
|
|
<?php
|
2006-05-23 18:38:24 +00:00
|
|
|
//This php script contains all the stuff to backup/restore data mod
|
2006-01-13 03:45:31 +00:00
|
|
|
|
2006-05-23 18:38:24 +00:00
|
|
|
//This is the "graphical" structure of the data mod:
|
2006-01-18 06:58:50 +00:00
|
|
|
//
|
|
|
|
// data
|
|
|
|
// (CL,pk->id)
|
|
|
|
// |
|
|
|
|
// |
|
|
|
|
// |
|
|
|
|
// ---------------------------------------------------------------------------------
|
|
|
|
// | |
|
|
|
|
//data_records (UL,pk->id, fk->data) data_fields (pk->id, fk->data)
|
|
|
|
// | |
|
|
|
|
// | |
|
|
|
|
// ----------------------------------------------------------------------------- |
|
|
|
|
// | | | |
|
|
|
|
//data_ratings(fk->recordid, pk->id) data_comments (fk->recordid, pk->id) | |
|
|
|
|
// data_content(pk->id, fk->recordid, fk->fieldid)
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// 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)
|
|
|
|
//
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
2010-09-07 08:53:58 +00:00
|
|
|
// !! data module never has had this in previous versions of restore. Amazing!
|
|
|
|
function data_restore_logs($restore,$log) {
|
|
|
|
// nothing here, just a reminder for work todo in 2.0
|
2007-09-17 21:58:55 +00:00
|
|
|
}
|