Tim Hunt による投稿

画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 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.

評点平均:Useful (2)
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 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.