Moodle API 所有用户完成课程
Moodle API All users completed courses
我想为每个用户的所有已完成课程制作一个导出页面。但是哪个 API 函数我最能用。
我找到了函数 core_completion_get_course_completion_status
,但问题是它需要一个 courseid
和一个 userid
。问题是有 100 个用户,每个用户有 20 个客户,他必须进行 100 x 20 = 2000 API 次调用。我自己发现很多。
有没有人有更好的方法?
你必须做一个plugin first, then populate it with web service
我想为每个用户的所有已完成课程制作一个导出页面。但是哪个 API 函数我最能用。
我找到了函数 core_completion_get_course_completion_status
,但问题是它需要一个 courseid
和一个 userid
。问题是有 100 个用户,每个用户有 20 个客户,他必须进行 100 x 20 = 2000 API 次调用。我自己发现很多。
有没有人有更好的方法?
你必须做一个plugin first, then populate it with web service