Dynamic rules Technical
From MoodleDocs
| ⇧ | Overview | Configuration | Use cases | Tenants | Technical |
|---|
| ⇧ | Overview | Configuration | Use cases | Tenants | Technical |
|---|
Limiting the number of rules
A site administrator can restrict the number of dynamic rules that can be created per site and/or tenant by adding the following setting(s) to the site configuration file. Note, archived rules are counted towards the limit; however, rules created automatically by other plugins (for example, programs and certifications) are not counted towards the limit:
$CFG->tool_dynamicrule_limitsenabled = true;
$CFG->tool_dynamicrule_sitelimit = <VALUE>;
$CFG->tool_dynamicrule_tenantlimit = <VALUE>;
Omitting this configuration, or setting tool_dynamicrule_limitsenabled value to false, indicates that no limit should be applied to the number of dynamic rules that can be created (default). Note that the tenant limit cannot exceed the site limit. Setting limit values to 0 will effectively disable rules creation.
Web services
The following web services are available for handling dDynamic rules:
- enrol/program:config: Configure Program enrolment instances