Skip to content
Browse files

Changed the "graphical" representation of the mod to include

multianswer table. I start working with it now !!
  • Loading branch information...
1 parent f3c40f8 commit bbe15ef239acbcc99f321925ff1bc7ef2a0963ed stronk7 committed Aug 22, 2003
Showing with 48 additions and 68 deletions.
  1. +21 −14 mod/quiz/backuplib.php
  2. +27 −54 mod/quiz/restorelib.php
View
35 mod/quiz/backuplib.php
@@ -24,20 +24,26 @@
// |
// |
// --------------------------------------------------------------------------------------
- // | | | |
- // | | | |
- // | | | | quiz_randomsamatch
- // quiz_truefalse quiz_shortanswer quiz_multichoice quiz_numerical |--(CL,pl->id,fk->question)
- // (CL,pl->id,fk->question)(CL,pl->id,fk->question)(CL,pl->id,fk->question)(CL,pl->id,fk->question) |
- // . . . . |
- // . . . . |
- // . . . . | quiz_match
- // ...................................................................... |--(CL,pl->id,fk->question)
- // . | .
- // . | .
- // . | .
- // quiz_answers | quiz_match_sub
- // (CL,pk->id,fk->question)---------------------------------|--(CL,pl->id,fk->question)
+ // | | | | | |
+ // | | | | | |
+ // | | | | | | quiz_randomsamatch
+ // quiz_truefalse | quiz_multichoice | quiz_multianswer |--(CL,pl->id,fk->question)
+ // (CL,pl->id,fk->question) | (CL,pl->id,fk->question) | (CL,pl->id,fk->question) |
+ // . | . | . |
+ // . quiz_shortanswer . quiz_numerical . |
+ // . (CL,pl->id,fk->question) . (CL,pl->id,fk->question) . | quiz_match
+ // . . . . . |--(CL,pl->id,fk->question)
+ // . . . . . | .
+ // . . . . . | .
+ // . . . . . | .
+ // . . . . . | quiz_match_sub
+ // . . . . . |--(CL,pl->id,fk->question)
+ // ............................................................. |
+ // . |
+ // . |
+ // . |
+ // quiz_answers |
+ // (CL,pk->id,fk->question)----------------------------------
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
@@ -56,6 +62,7 @@
// - quiz_questions
// - quiz_truefalse
// - quiz_shortanswer
+ // - quiz_multianswer
// - quiz_multichoice
// - quiz_numerical
// - quiz_randomsamatch
View
81 mod/quiz/restorelib.php
@@ -5,46 +5,12 @@
//To see, put your terminal to 132cc
//This is the "graphical" structure of the quiz mod:
- //
+ //
// quiz quiz_categories
- // (CL,pk->id) (CL,pk->id)
- // | |
- // ----------------------------------------------- |
- // | | | |
- // | | | |
- // | | | |
- // quiz_attempts quiz_grades quiz_question_grades |
- // (UL,pk->id, fk->quiz) (UL,pk->id,fk->quiz) (CL,pk->id,fk->quiz) |
- // | | |
- // | | |
- // | | |
- // quiz_responses | quiz_questions
- // (UL,pk->id, fk->attempt)----------------------------------------------------(CL,pk->id,fk->category,files)
- // |
- // |
- // |
- // --------------------------------------------------------------------------------------
- // | | | |
- // | | | |
- // | | | | quiz_randomsamatch
- // quiz_truefalse quiz_shortanswer quiz_multichoice quiz_numerical |--(CL,pl->id,fk->question)
- // (CL,pl->id,fk->question)(CL,pl->id,fk->question)(CL,pl->id,fk->question)(CL,pl->id,fk->question) |
- // . . . . |
- // . . . . |
- // . . . . | quiz_match
- // ...................................................................... |--(CL,pl->id,fk->question)
- // . | .
- // . | .
- // . | .
- // quiz_answers | quiz_match_sub
- // (CL,pk->id,fk->question)---------------------------------|--(CL,pl->id,fk->question)
- // //This is the "graphical" structure of the quiz mod:
- //
- // quiz quiz_categories
- // (CL,pk->id) (CL,pk->id)
- // | |
- // ----------------------------------------------- |
- // | | | |
+ // (CL,pk->id) (CL,pk->id)
+ // | |
+ // ----------------------------------------------- |
+ // | | | |
// | | | |
// | | | |
// quiz_attempts quiz_grades quiz_question_grades |
@@ -57,21 +23,27 @@
// |
// |
// |
- // --------------------------------------------------------------------------------------
- // | | | |
- // | | | |
- // | | | | quiz_randomsamatch
- // quiz_truefalse quiz_shortanswer quiz_multichoice quiz_numerical |--(CL,pl->id,fk->question)
- // (CL,pl->id,fk->question)(CL,pl->id,fk->question)(CL,pl->id,fk->question)(CL,pl->id,fk->question) |
- // . . . . |
- // . . . . |
- // . . . . | quiz_match
- // ...................................................................... |--(CL,pl->id,fk->question)
- // . | .
- // . | .
- // . | .
- // quiz_answers | quiz_match_sub
- // (CL,pk->id,fk->question)---------------------------------|--(CL,pl->id,fk->question)
+ // --------------------------------------------------------------------------------------
+ // | | | | | |
+ // | | | | | |
+ // | | | | | | quiz_randomsamatch
+ // quiz_truefalse | quiz_multichoice | quiz_multianswer |--(CL,pl->id,fk->question)
+ // (CL,pl->id,fk->question) | (CL,pl->id,fk->question) | (CL,pl->id,fk->question) |
+ // . | . | . |
+ // . quiz_shortanswer . quiz_numerical . |
+ // . (CL,pl->id,fk->question) . (CL,pl->id,fk->question) . | quiz_match
+ // . . . . . |--(CL,pl->id,fk->question)
+ // . . . . . | .
+ // . . . . . | .
+ // . . . . . | .
+ // . . . . . | quiz_match_sub
+ // . . . . . |--(CL,pl->id,fk->question)
+ // ............................................................. |
+ // . |
+ // . |
+ // . |
+ // quiz_answers |
+ // (CL,pk->id,fk->question)----------------------------------
//
// Meaning: pk->primary key field of the table
// fk->foreign key to link with parent
@@ -88,6 +60,7 @@
// - quiz_questions
// - quiz_truefalse
// - quiz_shortanswer
+ // - quiz_multianswer
// - quiz_multichoice
// - quiz_numerical
// - quiz_randomsamatch

0 comments on commit bbe15ef

Please sign in to comment.
Something went wrong with that request. Please try again.