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

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Groups, Web Services
    • Labels:
    • Testing Instructions:
      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 ))),
    • Pull Master Branch:
      MDL-33512-master

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: