Moodle - the world's open source learning platform https://moodle.org/
Find a file
mjollnir_ 7ccf89f50a update enrol/database to use roles.
Credit: Alastair Pharo <alastair@catalyst.net.nz>

Database
--------

1) This plugin previously only worked for students.  I have made it so
that you can _optionally_ specify a third column in your external
database that contains some kind of role information (similar to the
other two fields, you can choose any column in the mdl_role table
to map to).  If you do this, then the code loops over for each different
kind of role and queries the external database.

2) There is a *slight* problem to be aware of, if a moodle
configuration was upgraded to use the new role columns, then downgraded
again, some roles might get left behind in the database when the
large-scale sync thing goes through (that is, record pruning doesn't
scale back quite properly). These would be cleaned away by
setup_enrolments at login time, however, and the scenario was unlikely
enough for me to decide to leave it for now.

3) If you don't have role columns there is a 'default role' setting
that you can set (made by Martin D).  This will only be obeyed when no
role columns are specified.  If this is set to 'default', then the
course default role is used, on a per-course basis (which usually
means student apparently).

4) From (3), my understanding is that if no config settings are
changed, and the default role for all upgraded courses is student, that
a smooth upgrade to 1.7 will occur for users of the database enrolment
plugin.
2006-09-26 01:30:32 +00:00
admin Minor changes to improve behaviour of selections. 2006-09-25 22:53:39 +00:00
auth Here's a little patch for auth/ldap/lib.php... just stops some 2006-09-26 01:26:27 +00:00
backup Fix for typo MDL-6537 2006-09-26 01:11:53 +00:00
blocks it is now possible to hide parts of admin tree - not used yet, but it will be soon used for those hidden unsupported scripts in admin/ directory 2006-09-24 20:23:40 +00:00
blog major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
calendar major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
course fixing the participants report to work with roles 2006-09-26 01:23:57 +00:00
doc better handling of anchor name in docs index SC#306 2006-08-29 20:38:23 +00:00
enrol update enrol/database to use roles. 2006-09-26 01:30:32 +00:00
error fix my previous incorrect short tag fix, fixed register globals, IP address used as mail user when not logged in; merged from MOODLE_16_STABLE 2006-05-15 15:45:27 +00:00
files improved handling of resource file/directory references when renaming and deleting files in file manager. It is now fully configurable too. MDL-6132 2006-09-25 14:12:46 +00:00
filter debugging and error reporting level fixes and improvements MDL-6671 2006-09-23 09:38:39 +00:00
grade major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
install Automatic installer.php lang files by installer_builder (20060923) 2006-09-23 02:43:18 +00:00
iplookup Fixed a some debugging statements 2006-09-18 13:24:45 +00:00
lang fixing the participants report to work with roles 2006-09-26 01:23:57 +00:00
lib fixing the participants report to work with roles 2006-09-26 01:23:57 +00:00
login fix for old email confirmation - spotted by Dirk Grunwald; merged from MOODLE_16_STABLE 2006-09-20 21:48:33 +00:00
message replacing references to user_* tables 2006-09-19 01:44:33 +00:00
mod Ops! I forgot to commit this 2 days ago! Now a lot of 2006-09-25 22:48:43 +00:00
my Fixed some width="*" in layout tables 2006-09-25 14:40:26 +00:00
pix A real easter egg ;-) 2006-09-22 02:28:13 +00:00
question major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
rss debugging and error reporting level fixes and improvements MDL-6671 2006-09-23 09:38:39 +00:00
search major whitespace cleanup - fixed trailng whitespace in new files and admin area 2006-09-20 21:00:45 +00:00
sso/hive major whitespace cleanup - fixed \r\n line-ending 2006-09-20 19:46:52 +00:00
theme Fixed display of files 2006-09-25 23:09:16 +00:00
user debugging and error reporting level fixes and improvements MDL-6671 2006-09-23 09:38:39 +00:00
userpix adding capabilities 2006-09-07 08:57:56 +00:00
CHANGES Going through it now to make the release page 2004-01-31 09:12:25 +00:00
config-dist.php Merging $CFG->disablestatsprocessing from stable 2006-09-03 15:46:21 +00:00
file.php fix for MDL-6599 - problem with hiding of resource when $CFG->preventaccesstohiddenfiles enabled 2006-09-25 08:53:10 +00:00
help.php fixed trailing whitespace in last commit :-(; merged from MOODLE_16_STABLE 2006-08-22 22:12:17 +00:00
index.php adding capabilities 2006-09-08 08:46:26 +00:00
install.php Fixing MDL-6636, reference to file that is now gone (site.html) 2006-09-22 17:27:19 +00:00
README.txt Removed empty lines 2006-04-29 19:36:56 +00:00
tags new tags for new functions 2006-09-22 06:27:51 +00:00
version.php Drop all the unique keys inside PostgreSQL DB and convert them to 2006-09-24 22:14:23 +00:00

README     $Id$
------

QUICK INSTALL
=============

For the impatient, here is a basic outline of the 
installation process, which normally takes me only 
a few minutes:

1) Move the Moodle files into your web directory. 

2) Create a single database for Moodle to store all
   it's tables in (or choose an existing database).

3) Visit your Moodle site with a browser, you should 
   be taken to the install.php script, which will lead
   you through creating a config.php file and then 
   setting up Moodle, creating an admin account etc.

4) Set up a cron task to call the file admin/cron.php
   every five minutes or so.


For more information, see the INSTALL DOCUMENTATION:

   http://docs.moodle.org/en/Installing_Moodle 

A local copy can also be found in 

   lang/en_utf8/help/install.html   (or your language)


Good luck and have fun!
Martin Dougiamas, Lead Developer