How do I sign up for Moodle, and where is the data recorded?

1

I am developing a Moodle registration plugin which generates a bank account, but I have some doubts regarding the confirmation of the user's enrollment:

What is the table responsible for enrolling a student in a course in Moodle?

What would be the command to sign up?

The Moodle documentation is extremely confusing, making the developer's work difficult.

    
asked by anonymous 17.09.2014 / 04:40

1 answer

2

The default student table is mdl_user . The table where the enrollment is registered is mdl_role_assignments .

To insert a student, for example, through the bank, you can consult this file , where Moodle's SQL structure is explained.

In this article you have a more detailed explanation of how to insert a Moodle student into a new course, but is based on version 1.7.

    
11.03.2015 / 19:49