Moodle Integration with a PHP project of mine

半城伤御伤魂 提交于 2019-12-11 03:05:51

问题


I've been developing a project using php that my students use to take quizes (that moodle can't do itself) Now I would like to integrate moodle and my project such that my project authenticates against moodle users and reports grades into a courses gradebook. I've so far been authenticating using direct database reading but I'm very hesitant to do writes to the moodle database. I'm also aware of LTI; I am open to using it but the human readable documentation and any samples are impossible to find. If you could provide me a sample or documentation thats less theory and more applicable for LTI it would be greatly appreciated.

Thanks in advance.


回答1:


To do this you need to use the Web Services API. You need to setup a web service first, see Using web services. The entire API documentation is available on your Moodle site via Administration > Plugins > Web services > API Documentation.




回答2:


You need to use moodle's External Tool, which is created precisely for this kind of uses. External tool uses LTI in the background to send user, course, role etc information to an external application and the external application can even send back scores to moodle if configured as a quiz.

Check out : https://docs.moodle.org/23/en/External_tool

You will also have to make your quiz taking app, an LTI provider. This open source package is out of the box package to create LTI provider in ruby - https://github.com/instructure/ims-lti There are similar tools in other languages too, but this one is the most polished one.



来源:https://stackoverflow.com/questions/14495201/moodle-integration-with-a-php-project-of-mine

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!