插件本地插件稳定版

Webservice functions for cohort enrolment

local_ws_enrolcohortLearning Works

  • Moodle 1.9–5.1
  • 更新 2022-06-28

A local plugin with webservice functions for managing cohort enrolments.
The webservice functions for cohort enrolment provides the ability to manage cohort enrolment instances using Moodle webservices. This plugin was developed for  Te Wānanga O Aotearoa  to streamline the enrolment of Tauira (student, learner) into courses.
The following webservice functions are available.
add_instance – Add a cohort enrolment instance to a course
update_instance – Update an existing cohort enrolment instance
delete_instance – Delete an existing cohort enrolment instance
get_instances – Gets the cohort enrolment instances for all courses or a single course
The webservice documentation for the above functions can be found at http://yoursite.com/admin/webservice/documentation.php
When the plugin is installed all of the cohort enrolment webservice functions are added to the Built-in services.
An example call to the webservice function for adding a cohort enrolment instance to course would look like this:
http://yoursite.com/webservice/rest/server.php?wstoken=yOurT0k3n&moodlewsrestformat=json&ws_function=local_ws_enrolcohort_add_instance&instance[courseid]=2&instance[cohortid]=4&instance[roleid]=1
This plugin can be installed by following the official Moodle documentation – Installing plugins .
This plugin can be used in accordance with the official Moodle documentation – Using web services .

返回插件目录