Web Service Get Contexts

General plugins (Local) ::: local_getcontexts
Maintained by Francois J
It is a web service designed to return contexts providing context level and instance ID. It includes a simple example.
Latest release:
14 sites
4 downloads
2 fans
Current versions available: 1

It is a web service designed to return contexts providing context level and instance ID.
It includes a simple example.

This web service was designed to help with the core_role_assign_roles (to link a parent to a student) core_role_unassign_roles (to unenroll a student/teacher from a course; to unlink a parent to a student) and core_files_upload web service core functions as they need a context.

Contributors

Francois J (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • MD shot of me from his iphone4
    Thu, 14 Feb 2013, 3:00 PM
    Hi,
    Please consider adding a code repository when editing the plugin.

    Also if this is still required for the upcoming 2.5 release in may (after the work done in http://docs.moodle.org/dev/Web_services_Roadmap), perhaps you might wish to open up an MDL to consider this call being included into core.
  • Francois J
    Mon, 10 June 2013, 1:59 AM
    Hi Aparup,
    I can refer to two opened MDL concerning the context need:
    For core_role_assign_roles: https://tracker.moodle.org/browse/MDL-39152
    For core_role_unassign_roles: https://tracker.moodle.org/browse/MDL-39153
  • Francois J
    Tue, 25 Feb 2014, 6:37 AM
    Hi,
    The issue with the context has been fixed in Moodle 2.6. (See links in previous comment).
    The plugin is still needed for the Moodle integration of RosarioSIS as we cannot rely only upon 2.6.
  • Howard Miller
    Mon, 25 July 2016, 6:26 PM
    I don't think core_files_upload is fixed. That still requires the context (which you can't get)
Please login to post comments