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

core_group_[assign|unassign]_module_grouping

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Future Dev
    • 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 ))),

      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

            ankit_frenz Ankit Agarwal
            jleyva Juan Leyva
            Jérôme Mouneyrac Jérôme Mouneyrac
            Damyon Wiese Damyon Wiese
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.