26 Commits

Author SHA1 Message Date
samhemelryk
8e7328a292 enrol MDL-19795 Added set_url calls, and fixed misc minor errors 2009-10-15 03:17:57 +00:00
skodak
0a127169fe MDL17980 reverting last commit - other devs agreed, to be explained in tracker 2009-08-03 07:35:41 +00:00
peterbulmer
1b509b3699 MDL17980 mnet improvements
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
peterbulmer
d3080510e4 MDL19219 mnet, mitigate arrkey loss in transit
When usernames are numeric, they are lost in mnet transit when used as
keys in the array result of course_enrolments(). As the username is not
sent with the enrolment details, it was not previously recoverable.
This patch adds the information to the enrolment details,
(enrol/mnet/enrol.php), and adds support for recovering the username if
it was numeric (and hence lost) (admin/mnet/enr_course_enrol.php)
2009-05-18 02:38:02 +00:00
peterbulmer
a67a5531c6 MDL-18414 change sql query syntax
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-04-06 06:15:58 +00:00
peterbulmer
11b9852e4e MDL-18413 limit coursedata strings before db
Conflicts:

	enrol/mnet/enrol.php


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-04-06 06:15:00 +00:00
scyrma
b7f2b8e644 MDL-15403: Patch sent by Peter Bulmer, said to have been written by Donal McMullan. Prevents a remotely-triggered mass-unenrolments of users in a
(mnet-enabled) course. (merge from 1.9)
2008-07-09 09:10:09 +00:00
skodak
50c5bef452 MDL-14679 towards enrol conversion 2008-06-02 21:02:52 +00:00
dongsheng
f945d59b8f "MDL-14129, fix print_error calls" 2008-05-07 06:19:59 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
donal72
254f0c073a Initialize the $message variable properly this time. 2007-11-01 21:30:37 +00:00
donal72
970dc3660d Revert: Initialize the $message variable 2007-11-01 21:28:08 +00:00
donal72
d576d0402c Initialize the $message variable 2007-11-01 05:06:26 +00:00
skodak
128f098418 MDL-11640
* improved handling of dirty contexts in general - caching, switching in cron, marking, loading, etc.
* role_assing() and role_unassign() now marks dirty contexts because we use has_capability() in this function - we can not do it later outside to speedup bulk operations
* fixed some inline docs
* fixed notice from rs closing
* removed cached $CONTEXT from has_capability() - $context is now required parameter; this was hiding serious bugs when context did not exist or ppl passed false as parameter
* removed some ===, we can not use these on function parameters - we must support ints, strings, '', nulls, etc. - this could be a source of really dangerous bugs in future
* some other improvements and fixes - documented inline
2007-10-09 12:49:54 +00:00
martinlanghoff
f055618837 enrol/mnet: mark context as dirty after unenrol
So the unenrolment is effective immediately.
2007-09-19 07:12:10 +00:00
donal72
e6976ae1f6 MNet: More error tracking updates 2007-02-07 14:11:22 +00:00
donal72
d452439a08 MNet: Standardise format of the mnet_client->error array 2007-02-07 12:43:08 +00:00
martinlanghoff
ccb60df832 enrol/mnet: list_remote_servers() should only list servers we use enrolment for 2007-01-19 04:26:09 +00:00
martinlanghoff
e395caaa84 enrol/mnet: fixes around fetch_remote_courses() and available_courses
- ensure addslashes() affects data that goes to the database, not HTML
 - ensure we return defaultrolename from avaiable_courses
 - clear some leftover debug statements
2007-01-19 02:43:11 +00:00
donal72
0855c4cab3 Mnet: More enrolment data in the back channel - stash in mnet_enrol_assignments table 2007-01-19 00:23:55 +00:00
martinlanghoff
a298f31145 mnet: clear out debug msg 2007-01-18 04:39:41 +00:00
martinlanghoff
79b84c93fb enrol/mnet: list_remote_servers() must always return an array 2007-01-18 03:16:09 +00:00
donal72
68ea70b45f Mnet: enrol/mnet: Return enrol plugin type with list of enrolled users 2007-01-17 23:03:18 +00:00
donal72
5291907c45 Mnet: Show non-mnet enrolments in the mnet/enrolment page 2007-01-17 12:12:11 +00:00
skodak
7150226896 MDL-7861 xhtml strict fixes - fixed all <br> in our code 2007-01-04 23:38:17 +00:00
martinlanghoff
bf1a3d2010 mnet: new enrolment plugin 2007-01-04 03:05:48 +00:00