Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28592

Create a manual_unenrol_users external function

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide

      This can be tested using admin/webservice/documentation.php to fill out parameters or running https://github.com/moodlehq/sample-ws-clients

      Simple test process:

      Enrol 4 users, then unenrol one, check that the 3 remain, then unenrol two more users, and check that one remains

      Error cases:

      (1) Unenrol a user that is not enrolled. Result: silent failure
      (2) Unenrol a user that does not exist. Result: error user doesn't exist
      (3) Unenrol a user from course that doesn't exist. Result: error course doesn't exist

      Show
      This can be tested using admin/webservice/documentation.php to fill out parameters or running https://github.com/moodlehq/sample-ws-clients Simple test process: Enrol 4 users, then unenrol one, check that the 3 remain, then unenrol two more users, and check that one remains Error cases: (1) Unenrol a user that is not enrolled. Result: silent failure (2) Unenrol a user that does not exist. Result: error user doesn't exist (3) Unenrol a user from course that doesn't exist. Result: error course doesn't exist
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-28592-master

      Description

      The enrolment web service has a way through the manual plugin to enroll users, but it doesn't have a way to unenroll users. I've been working on writing an unenrol user function in moodleDir/enrol/manual/externallib.php and I can post what I have if you all feel like this is something that should be implemented.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                8 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/May/15