-
New Feature
-
Resolution: Fixed
-
Minor
-
2.7.11, 2.8.9, 2.9.3, 3.0.1
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
MOODLE_31_STABLE
-
MDL-52568_master -
Surprisingly there doesn´t seem to be a way to get a list of all the cohorts in the system.
The present function core_cohort_get_cohorts requires you to know previously de ids of the cohorts you want to get.
A function has been offered to cover this need http://stackoverflow.com/questions/31592674/moodle-api-list-all-cohorts, but I believe this should be included in Moodle Core.
- has been marked as being related by
-
MDL-52948 Add ability to return all cohorts in WS (backport of MDL-52568)
-
- Closed
-