Posts made by Tim Hunt

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't know the answer to your question.

But I do now that actions that the user take in the Mobile app get recorded, and the log events are passed back to the Moodle server and stored in the database. So, there must be some code that does what you want - if you can find where that happys. (I guess th mobile app sends the log events to the server using a web service, so it is find that service and see how it is implemented.)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I am trying to work ou where the work being done in MDL-76834 Web service modernisation has got to. It seems that just over half that epic is currently done, mostly in 4.4 and 4.5.

It was announced in this thread "Dependency Injection, and Facades" which as you can tell from the title is not specifically about web services.

However, today, if you go to the main developer docs about web services, there is nothing to say "the recommended new way to write web services is ...". There is specific documentation on the Routes part of this, but that is not enough for someone thinking "how should I implemented a web service".

So, thank to anyone who can clarify this.

Average of ratings: Useful (2)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Have you tried looking at the queries in the Moodle code where it gets this information?

https://github.com/moodle/moodle/blob/a3e4e4565ea2e0543704e1c22370a7e2a73a4fc7/mod/quiz/classes/question/bank/qbank_helper.php#L98

https://docs.moodle.org/dev/Overview_of_the_Moodle_question_engine#Detailed_data_about_an_attempt

And, I don't understand the second query. You are joining in a bunch of tables, but then not using any of the data from those tables.