Hello folks,
Environment: 2.2.4 (20120719), MySQL 5.1, PHP 5.3.3, RHEL 6.2 64-bit
Background: Our student information system (SIS) creates multiple classes with student/user enrolment information on a daily basis.
DB Enrolment method: synchronizing on a daily basis one class PER/IN EACH moodle course (i.e one class = 1 moodle course)
Questions using external DB enrolment:
- How to programmatically (if possible) sync to enrol users from multiple classes into one (1)/the same moodle course?
- Is the only way to do it manually and then run the sync manually/on-demand basis? If so, what would be the best way to call the sync script from and have it run as a web-based application (one that users can just login to a protected site and click on say ... "run sync process")?
- We looked at meta courses but that would mean we would have to create X amount of empty child courses just for the enrolment sync which would be a waste of empty courses.
Example Scenario:
Moodle Course ID: 12345
Db external enrolment identifier: Course ID Number
SIS classes: 2013A, 2013B, 2013C, 2013D, 2013E, 2013F, 2013F, 2013G, ... and so on
So if we want to add SIS enrolments from classes 2013A to 2013F to Moodle Course ID: 12345, we would do this manually by:
- Enter class 2013A in the "Course ID Number" of Moodle Course ID: 12345
- Manually run the synch script
- Change the "Course ID Number" to 2013B of Moodle Course ID: 12345
- Manually run the synch script again
- Change the "Course ID Number" to 2013C of Moodle Course ID: 12345
- Manually run the synch script again
- Change the "Course ID Number" to 2013D of Moodle Course ID: 12345
- Manually run the synch script again
- Change the "Course ID Number" to 2013E of Moodle Course ID: 12345
- Manually run the synch script again
- Change the "Course ID Number" to 2013F of Moodle Course ID: 12345
- Manually run the synch script again
This would give us all the enrolments from these 6 classes into one Moodle course.
Is there a way to programmatically do this (or an easier way/workaround)?
Thanks
John.