MoodleScript: ADD ENROL METHOD

MoodleScript Script Engine

Effect

Adds an enrolment method instance to a course.

Syntax

  ADD ENROL METHOD <method> TO <courseidentifier> HAVING
  role: <rolename>
  customint1: <value1>
  customint2: <value2>
  ADD ENROL METHOD meta TO <courseidentifier> HAVING
  role: <rolename>
  course: <courseidentifier>

Examples

  ADD ENROL METHOD self TO idnumber:MONCOURS HAVING
  role: student
  ADD ENROL METHOD meta TO idnumber:SUPERCOURS HAVING
  role: student
  course: idnumber:METACOURS

Specific attributes

m: 1 to 8 n: 1 to 3 o: 1 to 4

Default values

Impact on the execution stack context

None

Back to the language index - Back to the component index