24 Commits

Author SHA1 Message Date
martinlanghoff
74da3c2c89 [multienrol]Improved get_student/teacher_courses() functions to cache enrolment type that saves lots of recursive database query 2006-03-09 03:15:42 +00:00
martinlanghoff
f9667a5aea [multienrol]Initial commit for multi enrolment plugin feature 2006-03-09 02:48:29 +00:00
martinlanghoff
5f8ca5dfb6 enrol/db: Better warning when the user record is missing. 2006-01-16 03:12:55 +00:00
martinlanghoff
6ee745f7ec enrol/database: Fix for stupid SQL escaping error. 2006-01-16 03:12:10 +00:00
martinlanghoff
2642328505 enrol/database -- course autocreation now follows new configuration variables 2006-01-16 03:11:46 +00:00
martinlanghoff
32d9287f89 enrol/database -- added options to control course autocreation 2006-01-16 03:10:39 +00:00
martinlanghoff
e1c1a4a88f enrol/database - added some headers to the config page 2006-01-16 03:09:32 +00:00
martinlanghoff
491651f448 enrol/database - now with added sync and course autocreation
Added an external script to invoke automatic enrol-unenrol. It also
will autocreate courses based on a template.
2006-01-16 03:08:50 +00:00
martinlanghoff
92ab8e50d4 enrol/database tidyup: cleanup mysql hack if connect errors out 2006-01-16 03:04:31 +00:00
martinlanghoff
3e353d3622 enrol/database tidyup: wrap one line 2006-01-16 03:03:59 +00:00
martinlanghoff
388cbbfb8e enrol/database: split out db connection/disconnection to separate methods
Split them out in preparation for a sync method -- encapsulates the
nasty MySQL hack.
2006-01-16 03:03:21 +00:00
martinlanghoff
8456874ab3 Merged from MOODLE_15_STABLE - Fix for bug 4031 -- fix typo 2005-09-07 23:24:29 +00:00
martinlanghoff
a96354b582 Merged from MOODLE_15_STABLE - Fix for bug 4031 -- stupid mistake of using get_record_select() when I mean get_record() - see the bug entry for more details 2005-09-07 22:49:32 +00:00
martinlanghoff
e91902556f Merged from MOODLE_15_STABLE - enrol/db - bug 3912 - Re-add the enrolment to $user->student[] - should fix things for good. 2005-09-07 06:39:30 +00:00
martinlanghoff
fd734f6165 Merged from MOODLE_15_STABLE - Fix for bug 4011 -- a MySQL specific workaround did not work with database names with hyphens, and broke the whole plugin for other databases. This patch fixes both issues. 2005-09-07 06:12:40 +00:00
martinlanghoff
a6d114e600 Merged from MOODLE_15_STABLE - enrolment fixes: We now have better handling of the enrol field when dealing with student enrolments. This fixes bugs 3912 and 3974. NOTE that enrol_student() now defaults to manual - this is to support the different pages that call enrol_student() to still work correctly when external enrolments are in use, by recording the enrolments as manual. Enrolment plugins are expected to know better and pass the correct parameter. 2005-08-26 06:11:38 +00:00
stronk7
894ff63f8f Tabs are out 2005-05-16 22:22:31 +00:00
moodler
210eddc7df Various cleanups for XHTML and so on 2005-02-08 17:56:22 +00:00
moodler
ea8dedc882 Merged change to restore $CFG->prefix from stable 2004-09-25 15:33:06 +00:00
moodler
a3224cc359 Merged improved database plugin for enrolment 2004-09-23 17:02:40 +00:00
moodler
76706cbfb0 iMerged from stable 2004-09-03 03:19:31 +00:00
moodler
64eba17e78 Fixed a typo 2004-08-23 12:04:55 +00:00
moodler
0f093efab2 Here finally is an admin interface for controlling the new enrolment plugins.
It's not at all well-tested yet (I made a lot of changes to it just tonight)
but it's late and I am literally sick (with flu) and tired so I'm checking
this in and going to bed.

Please fix all the bugs for me.   ;-)
2004-08-21 17:15:07 +00:00
moodler
1357be4a55 Old code, never checked in ... not really tested 2004-08-14 12:47:24 +00:00