Can anybody tell me which tables are involved in enroling a student in a course (assigning the role of legacy:student within a particular course) in Moodle 1.9?
I've attempted to figure it out, but have not been succesful. I have also searched the forums, and not found any answers there. I also left a post in another forum over a week ago, but got no response, so hopefully a developer can point me to the correct tables.
Since the API is still being worked on, I need to be able to do a direct write to the db to enrol students. And yes, I have looked at other enrolment methods like external db, but they do not meet our requirement that the student can be manually unenrolled from within Moodle as well, so I need to automatically simulate a manual enrolment, and not rely on any external source once this enrolment is complete.
Thanks