带有小组和课程的 Moodle 学生列表 [英] Moodle Student list with Groups and Course

查看:61
本文介绍了带有小组和课程的 Moodle 学生列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是moodle2.4.6.我想要一个用户及其组和课程的列表.

I am using moodle2.4.6. I want a list of user with their groups and their courses.

推荐答案

您需要执行 SQL 查询才能获取此信息.

You will need to do an SQL query to get this information.

假设您对表使用默认的mdl_"前缀,您需要将以下表连接在一起:

Assuming you are using the default 'mdl_' prefix for tables, you will need to join together the following tables:

  • mdl_user - 用户的详细信息
  • mdl_user_enrolments - (user_enrolments.userid = user.id) 哪个课程注册用户有
  • mdl_enrol - (enrol.id = user_enrolments.enrolid) 详情注册实例这些是
  • mdl_course - (course.id = enrol.courseid) 这些用户注册的课程的详细信息
  • mdl_groups_members - (groups_members.userid = user.id) 的详细信息这些用户所在的组
  • mdl_groups - (groups.id =groups_members.groupid AND groups.courseid = course.id) 名称和用户所在小组的描述(针对每门课程)

如果您需要帮助将伪代码转换为实际 SQL,或者您需要 Moodle 数据库访问 API 方面的帮助,请发表评论 (http://docs.moodle.org/dev/Data_manipulation_API )

Please comment if you need help turning that pseudo code into actual SQL, or if you need help with the Moodle database access API ( http://docs.moodle.org/dev/Data_manipulation_API )

这篇关于带有小组和课程的 Moodle 学生列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆