XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      This is covered by unit tests - but to make sure the web-client is working too:

      Use this client:
      https://github.com/moodlehq/sample-ws-clients/blob/master/PHP-REST/client.php

      /// FUNCTIONNAME
      core_cohort_create_cohorts

      /// PARAMETERS
      $cohort1 = array(
      'categorytype' => array('type' => 'system', 'value' => ''),
      'name' => 'cohort test 1',
      'idnumber' => 'cohorttest1',
      'description' => 'This is a description for cohorttest1'
      );
      $params = array('cohorts' => array($cohort1));

      Show
      This is covered by unit tests - but to make sure the web-client is working too: Use this client: https://github.com/moodlehq/sample-ws-clients/blob/master/PHP-REST/client.php /// FUNCTIONNAME core_cohort_create_cohorts /// PARAMETERS $cohort1 = array( 'categorytype' => array('type' => 'system', 'value' => ''), 'name' => 'cohort test 1', 'idnumber' => 'cohorttest1', 'description' => 'This is a description for cohorttest1' ); $params = array('cohorts' => array($cohort1));
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull Master Branch:

      Description

      A web service function able to manage cohort creation

      Parameters :

      • cohort name
      • context (possibly name, not context id)
      • cohort ID
      • description

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andreabix Andrea Bicciolo
              Reporter:
              andreabix Andrea Bicciolo
              Peer reviewer:
              Eloy Lafuente (stronk7)
              Integrator:
              Damyon Wiese
              Tester:
              Damyon Wiese
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/May/13