插件管理工具稳定版

Cohort synchronization

tool_cohortsyncGilles-Philippe Leblanc

  • Moodle 1.9–5.1
  • 更新 2026-03-31

This plugin allows the synchronization of cohorts and members in cohorts from the command line. There are 2 scripts CLI to do the synchronization: cohortsync.php, cohortmembersync.php
Plugin description
This plugin allows the synchronization of cohorts and members in cohorts from the command line.
There are 2 scripts CLI to do the synchronization.
cohortsync.php
cohortmembersync.php
The plugin configuration page
There are two level configuration:
Settings for cohorts synchronization
CSV delimiter: CSV delimiter of the cohorts file, this option will be used as default value if no delimiter option given for the CLI
encoding: The type of encoding file, this option will be used as default value if no encoding option given for the CLI
default category: the default context category of the cohorts, if in the cohorts CSV file the category context is not filled or not found, this category will be used.
Settings for cohorts members synchronization
User identifier: This parameter is used to identify the user who will be added to the cohort, those values are allowed: id, username, idnumber. If the param useridentifier is no given to the CLI script, this value will be used.
Cohort identifier: This parameter is used to identify the cohort in which to insert the member, those values are allowed: id, name, idnumber. If the param cohortidentifier is no given to the CLI script, this value will be used.
CSV delimiter: Delimiter of the cohorts members file, this option will be used as default value if no delimiter option given for the CLI
encoding: The type of encoding file, this option will be used as default value if no encoding option given for the CLI
Formats description
Cohorts synchronization
Since cohort synchronization is based on Upload cohorts (core), the full description is found here

返回插件目录