Moodle plugins directory: User role assignment from external database: Versions: 0.2 | Moodle.org
User role assignment from external database
Enrolment ::: enrol_dbuserrel
Maintained by Maxime Pelletier, Alistair Spark
This plugin allows you to configure automatic synchronisation of relationships between users from an external database. It is mainly used to assign Parent/Mentor rôle.
User role assignment from external database 0.2
Moodle 2.2, 2.3, 2.4, 2.5, 2.6
Released: fredag den 16. maj 2014, 04:01
This plugin allows you to configure automatic relationships between users from an external database.
THIS PLUGIN IS IN BETA STATUS! BE CAREFULL WITH PRODUCTION ENVIRONMENT!
Users familiar with enrol/db should have no problems configuring this.
Plugin has been tested on 2.3 and 2.6.
This plugin was first developed by Penny Leach for Moodle 1.9
by I modified it to work with Moodle 2.3
This is my first experience with Moodle plugin development, so your comments are more than
welcome. Useless to say that you use this piece of code at your own risk
In the configuration, "Subject" represent the parent, and "Object" represent the student.
HOW TO INSTALL
==============
Prerequisis
a. SQL table containing mentee-mentor-role relationship information
b. PHP library to connect to SQL table
c. mentee and mentor already in Moodle
d. role already in Moodle
1. Download all the files in the directory {MOODLE_DIR}/enrol/dbuserrel (using git, GitHub website, or anything else)
2. Go to http://{MOODLE_URL}/admin to complete the installation
3. Fill all parameters using Moodle plugin administration interface (http://{MOODLE_URL}/admin/settings.php?section=enrolsettingsdbuserrel
4. Setup a cron job to execute {MOODLE_DIR}/enrol/dbuserrel/cli/sync.php (add -v for more output, and redirecte output to log file)
Feel free to send me any comments/suggestions
Maxime Pelletier
THIS PLUGIN IS IN BETA STATUS! BE CAREFULL WITH PRODUCTION ENVIRONMENT!
Users familiar with enrol/db should have no problems configuring this.
Plugin has been tested on 2.3 and 2.6.
This plugin was first developed by Penny Leach for Moodle 1.9
by I modified it to work with Moodle 2.3
This is my first experience with Moodle plugin development, so your comments are more than
welcome. Useless to say that you use this piece of code at your own risk
In the configuration, "Subject" represent the parent, and "Object" represent the student.
HOW TO INSTALL
==============
Prerequisis
a. SQL table containing mentee-mentor-role relationship information
b. PHP library to connect to SQL table
c. mentee and mentor already in Moodle
d. role already in Moodle
1. Download all the files in the directory {MOODLE_DIR}/enrol/dbuserrel (using git, GitHub website, or anything else)
2. Go to http://{MOODLE_URL}/admin to complete the installation
3. Fill all parameters using Moodle plugin administration interface (http://{MOODLE_URL}/admin/settings.php?section=enrolsettingsdbuserrel
4. Setup a cron job to execute {MOODLE_DIR}/enrol/dbuserrel/cli/sync.php (add -v for more output, and redirecte output to log file)
Feel free to send me any comments/suggestions
Maxime Pelletier
Version information
- Version build number
- 2014051500
- Version release name
- 0.2
- Maturity
- Beta
- MD5 Sum
- ae84ce8e6603184e57490af38deb2dea
- Supported software
- Moodle 2.2, Moodle 2.3, Moodle 2.4, Moodle 2.5, Moodle 2.6
- Latest release for Moodle 2.2
- Latest release for Moodle 2.3
- Latest release for Moodle 2.4
- Latest release for Moodle 2.5
- Latest release for Moodle 2.6
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
Default installation instructions for plugins of the type Enrolment
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder (eg "myenrol") in the "enrol" subdirectory.
- Visit http://yoursite.com/admin to finish the installation