Webservice functions for cohort enrolment

General plugins (Local) ::: local_ws_enrolcohort
Maintained by This is a picture of meDonald Barrett, Learning Works
A local plugin with webservice functions for managing cohort enrolments.
Latest release:
141 sites
126 downloads
8 fans
Current versions available: 1

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.


Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

This is a picture of me
Donald Barrett (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Plugins bot
    Wed, 11 July 2018, 10:10 AM
    Approval issue created: CONTRIB-7379
  • Wazza
    Tue, 14 Aug 2018, 4:25 PM
    Hi Donald,
    Thanks for this plugin! It should be core Moodle if you wish to setup a big installation. Will this be working on future Moodle versions? It now only says Moodle 3.3. We seriously need this, but what we don't need is that this will stop working if we upgrade Moodle to f.e. 3.6
  • Learning Works
    Mon, 29 Apr 2019, 11:25 AM
    Hello Richard,

    Sorry for not responding earlier. This has been tested in 3.4, 3.5, and 3.6. I have just added v3.3.3 that addresses an issue where sites with a large number of cohorts were unable to add cohort enrolment instances to their courses. Thanks again Thomas (thoschi) for the fix.
  • Sélim MEZITI
    Tue, 8 Feb 2022, 6:40 PM
    hello, this plugin is it compatible with Moodle 3.11.5 ?
    In description, the last version is Moodle 3.6. This plugin is it abandoned ?
    Thank you.
  • This is a picture of me
    Tue, 28 June 2022, 10:08 AM
    Not abandoned, just had no time to work on. It has been updated. Ran the plugin through some automated tests and appears to be fine.
  • Ondrej Galbavy
    Sat, 2 July 2022, 11:58 PM
    Could you, please, update Useful links section on this page to new repository? Thanks
  • This is a picture of me
    Mon, 4 July 2022, 5:43 AM
    I have made a pull request just now to the repository listed on the page.
  • yuina imai
    Wed, 30 Aug 2023, 5:11 PM
    Hello Donald,
    Are there any plans to make this plugin compatible with 4.1 or later versions?
    Thank you.
Please login to post comments