]> git.mjollnir.org Git - moodle.git/commitdiff
Included Schema of evey mod (comments) and complete
authorstronk7 <stronk7>
Thu, 1 May 2003 17:43:03 +0000 (17:43 +0000)
committerstronk7 <stronk7>
Thu, 1 May 2003 17:43:03 +0000 (17:43 +0000)
assignments

backup/mod/assignment/backuplib.php
backup/mod/choice/backuplib.php
backup/mod/forum/backuplib.php

index 7ff77d5422eacb90e8085198576bd60da61865be..ae33deb9c13493028c7afad0895da1e7be1d6eb7 100644 (file)
@@ -2,7 +2,30 @@
     //This php script contains all the stuff to backup/restore
     //assignment mods
 
+    //This is the "graphical" structure of the assignment mod:
+    //
+    //                   assignment
+    //                    (CL,pk->id)             
+    //                        |
+    //                        |
+    //                        |
+    //                 assignment_submisions 
+    //           (UL,pk->id, fk->assignment,files)
+    //
+    // 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)
+    //
+    //-----------------------------------------------------------
+
     function assignment_backup_mods() {
         print "hola";
     }
+
+    function assignment_check_backup_mods() {
+        print "hola";
+    }
 ?>
index 7afe8da491c2a990a746e651b540889b1325ce83..1c9e9bdc4683f7123c2d068beee7ae7f14b8fdf5 100644 (file)
@@ -2,6 +2,25 @@
     //This php script contains all the stuff to backup/restore
     //choice mods
 
+    //This is the "graphical" structure of the choice mod:
+    //
+    //                      choice                                      
+    //                    (CL,pk->id)
+    //                        |
+    //                        |
+    //                        |
+    //                   choice_answers 
+    //               (UL,pk->id, fk->choice)     
+    //
+    // 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)
+    //
+    //-----------------------------------------------------------
+
     function choice_backup_mods() {
         print "hola";
     }
index bc4c2b8ab45d8aa46f7a7b72c9bc9cd34eedb35f..d21caf5939e8debbdd2466396a2330cabbbf15f6 100644 (file)
@@ -2,6 +2,35 @@
     //This php script contains all the stuff to backup/restore
     //forum mods
 
+    //This is the "graphical" structure of the forum mod:
+    //
+    //                           forum                                      
+    //                        (CL,pk->id)
+    //                            |
+    //             -----------------------------------        
+    //             |                                 |
+    //        subscriptions                    forum_discussions
+    //    (UL,pk->id, fk->forum)             (UL,pk->id, fk->forum)
+    //                                               |
+    //                                               |
+    //                                               |
+    //                                           forum_posts
+    //                             (UL,pk->id,fk->discussion,nt->parent,files) 
+    //                                               |
+    //                                               |
+    //                                               |
+    //                                          forum_ratings
+    //                                      (UL,pk->id,fk->post)
+    //
+    // 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)
+    //
+    //-----------------------------------------------------------
+
     function forum_backup_mods() {
         print "hola";
     }