Development:Virtual Sites: различия между версиями

Материал из База знаний Центра ПУСК МФТИ
1>Dougiamas
Нет описания правки
 
м 1 версия импортирована
 
(нет различий)

Текущая версия от 08:53, 21 октября 2024

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.