Development:Virtual Sites: Difference between revisions
From MoodleDocs
No edit summary |
(No difference)
|
Latest revision as of 13:58, 21 February 2007
Here are some rough notes that will build up into a spec of what needs to be done to make Moodle support virtual Moodles. (ie lots of Moodle sites but one code base)
PLAN 1
1) Add a site id to the user table 2) Add a site id to the course categories table 3) Add a site id to the course table 4) Add a site id to the roles tables 5) Force login 6) The siteid you have in your user account is in $USER and can be used to modify a number of SQL calls in datalib.php so that only things for that site are used.