XMLWordPrintable

Details

    • MOODLE_21_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_25_STABLE
    • 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));

    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

              andreabix Andrea Bicciolo
              andreabix Andrea Bicciolo
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Damyon Wiese Damyon Wiese
              Damyon Wiese Damyon Wiese
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13