Dear all,
We are in a process of importing courses from a third party system. As much as we are exposed to that system, we understood it as a propitiatory system which does not follow any standard format. All they have given us is a set of *.SQL files which created set of tables and pumped records in our MYSQL database.
We managed to get a fair understanding of their tables and devised the following approach:
- Write SQL queries to extract the courses (only courses) from their tables and insert into Moodle's appropriate table, there by empty courses are created in Moodle.
- Write SQL queries to extract the questions from their tables and dump in a XML format and manually import the XML through Moodle's user interface. This will import the questions in to Moodle.
- Within Moodle's tables associate courses and questions either manually or through a query.
In this approach we do not know how to insert assets (image, audio and video files) into Moodle's tables. As far as we understood Moodle stores the files in moodledata\filedir using some hashing methods. So, without knowing how these hashes are generated it would not be possible for us to push the assets to this folder.
My questions in this scenario:
- Are there any better way to import courses, units/topics, questions and its assets into the Moodle system other than what we are planning?
- Our plan works only for questions without any assets. How can we proceed with the questions with assets?
I am aware that many members in this forum are volunteering their time and effort. With great respect to that I tried to submit my question with what ever details that might be needed. Just in case if it falls short of any such details, please seek clarification.
Many thanks,
Narayanan