Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Virtual Sites.

Development:Virtual Sites

From MoodleDocs
Revision as of 13:58, 21 February 2007 by Martin Dougiamas (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.