Skip to content

This local module provides a web service which returns a given user's courses based on username.

Notifications You must be signed in to change notification settings

LafColITS/moodle-local_remote_courses

Repository files navigation

Remote course web service

Moodle Plugin CI

This local module provides a web service which returns a given user's courses based on username. It returns the courses sorted by access time, with the most recently-accessed course at the top. You may also configure it to return term information. The standard use case is to create deep links to courses in one Moodle installation in another Moodle installation.

Configuration

To use this service you will need to create the following:

  1. A web service on a Moodle installation
  2. A user with sufficient permissions to use the web service
  3. A token for that user

See Using web services in the Moodle documentation for information about creating and enabling web services. The user will need the following capabilities in addition to whichever protocol you enable:

  • moodle/course:view
  • moodle/course:viewhiddencourses
  • moodle/course:viewparticipants
  • moodle/user:viewdetails

There is a setting for extracting a term code from the course idnumber using a regular expression. For example, the regular expression /[0-9]+\.([0-9]+)/ would extract "201610" from "999999.201610".

Requirements

  • Moodle 4.2 (build 2023012600.00 or later)

Installation

Copy the remote_courses folder into your /local directory and visit your Admin Notification page to complete the installation.

Author

Charles Fulton ([email protected])

About

This local module provides a web service which returns a given user's courses based on username.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages