I searched the forum and also went through the API documentation. So far I'm a bit clueless which path I should take in order to retrieve a quiz and its containing questions. And if it is correct in any case as well. I'm using Moodle 2.2
What I'm trying to achieve is, to use an external software which can present a list of available quizzes. Those quizzes and their questions need to be retrieved by the software and processed afterwards to be used in a proprietary system.
As far as I researched I could either create a webservice/plugin that uses some specific function to retrieve the quiz data. But so far just the most vital core functions are implemented. I could retrieve the name of the quiz with "core_course_get_contents" but how to proceed from there?
Another option might be to use ODBC and query the data directly from the correct tables. I recognised that the table mdl_quiz has the column questions that contains "1,0,2,0" in my case. I guess 1 and 2 are the ids of the two questions that are in my quiz, but the zeros?
Could this option be a possibility?
As I said I'm a bit stuck here and would really appreciate if someone knows an easy solution for this matter. May be I overlooked something?
Cheers
jackie