Skip to content

StudiUM/moodle-tool_uploadenrolmentmethods

 
 

Repository files navigation

Upload enrolment methods

Upload enrolment methods from a CSV file into a range of courses

Description

The Upload course enrolment methods plugin for Moodle allows you to add enrolment methods to a range of courses at the same time. The Course meta link and Cohort sync methods are supported. You can also delete, enable or disable existing enrolment methods in a course. The plugin is strongly based on the Upload Metacourse links (block_metalink) plugin developed by Mark Johnson, and uses code from it.

Requirements

This plugin requires Moodle 2.9+ from http://moodle.org

Installation and Update

Install the plugin, like any other plugin, to the following folder:

/admin/tool/uploadenrolmentmethods

See http://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins.

There are no special considerations required for updating the plugin.

Uninstallation

Uninstall the plugin by going to the "Manage plugins" page:

Administration > Site administration > Plugins > Manage plugins > Upload enrolment methods

...and click Uninstall. You may also need to manually delete the following folder:

/admin/tool/uploadenrolmentmethods

Usage & Settings

There are no configurable settings for this plugin.

Use the command Administration > Site administration > Plugins > Enrolments > Upload enrolment methods to upload a CSV file containing the following labelled columns in any order:

operation,method,shortname,metacohort,disabled,group,role

The format of the CSV file is as follows:

  • Line 1 contains column headings.
  • Each line of the file contains one record.
  • Each record is a series of data in any order separated by commas or other standard delimiters.
  • The fields are: operation, enrolment method, target course shortname, parent course shortname or cohort idnumber, disabled status[, group name[, role]].
  • All fields are required except group and role.
  • The operations are add, del(ete) and upd(ate).
  • The supported enrolment methods are meta and cohort.
  • The disabled status values are 1 (disabled) or 0 (enabled).
  • Students enrolled via the method will be placed in the group specified in the group name field. The group will be created if it doesn't already exist.
  • The role field must be a valid role name such as editingteacher, student, etc.

License

2018 Eoin Campbell

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Upload enrolment methods from a CSV file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.0%
  • Gherkin 8.0%