Actions
Migration Dokeos 185 to Chamilo 20 - Quizzes¶
General¶
- Migrates the quizzes from dokeos 185 to chamilo 2.0
- Extension of CourseDataMigrationBlock
- Exception of normal migration process, quiz_rel_questions are migrated from within the context of quiz_questions due to some data not being available in the quiz_rel_questions table were they should be.
Files involved¶
- /migration/platform/dokeos185/migration_block/course_quizzes_migration_block.class.php
- /migration/platform/dokeos185/data_class/dokeos185_quiz.class.php
- /migration/platform/dokeos185/data_class/dokeos185_quiz_question.class.php
- /migration/platform/dokeos185/data_class/dokeos185_quiz_rel_question.class.php
- /migration/platform/dokeos185/data_class/dokeos185_quiz_answer.class.php
Block prerequisites¶
- Courses migration block
Dokeos185Quiz¶
General information¶
- Extension of Dokeos185CourseDataMigrationDataClass
- Database: course
- Table: quiz
Validation method¶
- Required Fields
- Id
- Title or description
Convert method¶
- Create a new assessment with the data class fields
- Publish the assessment in the current course
Dokeos185QuizQuestion¶
General information¶
- Extension of Dokeos185CourseDataMigrationDataClass
- Database: course
- Table: quiz_question
Validation method¶
- Required Fields
- Id
- Type (and can not be 6)
- Question
Convert method¶
- Create a new question with the data class fields according to the given type
- Add the question to the correct assessments with the use of Dokeos185QuizRelQuestion
Dokeos185QuizRelQuestion¶
General information¶
- Extension of Dokeos185CourseDataMigrationDataClass
- Database: course
- Table: quiz_rel_question
- Special class: only called from Dokeos185QuizQuestion
Validation method¶
- Required Fields
- Id of new question (given by Dokeos185QuizQuestion)
- Id of quiz must exist in id reference
- Ponderation
Convert method¶
- Add the question to the correct assessment
Dokeos185QuizAnswer¶
General information¶
- Extension of Dokeos185CourseDataMigrationDataClass
- Database: course
- Table: quiz_answer
Validation method¶
- Required Fields
- Id
- Question id must exist in id reference
- Answer
Convert method¶
- Retrieve the correct question
- Format the answer depending on the question type
- Update the question with the answers / options
Issues/Problems/Suggestions¶
- Check is valid methods
Please report all problem by creating a new issue in the 2.0 issue list [http://support.chamilo.org/projects/chamilo-20/issues]
Updated by Sven Vanpoucke over 12 years ago ยท 2 revisions