Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29934 Web service API Roadmap
  3. MDL-33512

core_group_[assign|unassign]_module_grouping

    XMLWordPrintable

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • Future Dev
    • None
    • Groups, Web Services
    • MDL-33512-master
    • Hide
      1. run unit tests and make sure no errors are generated:- phpunit group/tests/externallib_test.php
      2. Use this client:
        https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-REST

      In a course create an activity that supports grouping and some groups and groupings (keep the activity cmid and the grouping id)

      functionname
      core_group_assign_module_grouping

      $params = array('assignments' => array(array(
      'groupingid' => x,
      'cmid' => x
      ),
      array(
      'groupingid' => x,
      'cmid' => x
      ))),

      functionname
      core_group_unassign_module_grouping

      $params = array('assignments' => array(array(
      'groupingid' => x,
      'cmid' => x
      ),
      array(
      'groupingid' => x,
      'cmid' => x
      ))),

      Show
      run unit tests and make sure no errors are generated:- phpunit group/tests/externallib_test.php Use this client: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-REST In a course create an activity that supports grouping and some groups and groupings (keep the activity cmid and the grouping id) functionname core_group_assign_module_grouping $params = array('assignments' => array(array( 'groupingid' => x, 'cmid' => x ), array( 'groupingid' => x, 'cmid' => x ))), functionname core_group_unassign_module_grouping $params = array('assignments' => array(array( 'groupingid' => x, 'cmid' => x ), array( 'groupingid' => x, 'cmid' => x ))),

    Description

      These web service functions will assing or unassign a grouping to a module (resource or activity) in a course

      It's a copy of the current common module settings

      Parameters:
      ----------
      array of struct (
      cmid - Course module id,
      groupingid - The grouping id

      )
      Return value:
      -----------
      null

      Attachments

        Issue Links

          Activity

            People

              ankit_frenz Ankit Agarwal
              jleyva Juan Leyva
              Jérôme Mouneyrac Jérôme Mouneyrac
              Damyon Wiese Damyon Wiese
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: