Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Virtual Sites

From MoodleDocs
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable.

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.