Skip to content

Commit

Permalink
Update docs/apis/plugintypes/enrol/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sara Arjona <[email protected]>
  • Loading branch information
ilyatregubov and sarjona authored Nov 3, 2023
1 parent 4955b73 commit c88ea02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apis/plugintypes/enrol/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ Returns enrolment instance in a given course matching provided data. If enrol pl

So far following enrol plugins implement this method: *enrol_manual*, *enrol_self*, *enrol_guest*, *enrol_cohort*.
Method must be capable to uniquely identify instance in a course using provided data in order to implement this method. For example, *enrol_cohort* uses
cohortID together with roleID to identify instance. For some methods (like *enrol_lti* or *enrol_payment*) it is not possible
`cohortID` together with `roleID` to identify instance. For some methods (like *enrol_lti* or *enrol_payment*) it is not possible
to uniquely identify instance in a course using provided data, so such methods will not be supported in CSV course upload.

The only exception is *enrol_self* - although it is not possible to uniquely identify enrolment instance in a course using provided data, it is still supported in CSV course upload. For *enrol_self* method `find_instance()` returns the first available enrolment instance in a course.
Expand Down

0 comments on commit c88ea02

Please sign in to comment.