SetLessonTeacherList (Opus Funktion)
Beschreibung¶
Mit dieser Funktion, kann man eine Liste der Lehrer erstellen. Sets the teacher assignment of a lesson to exactly the given list of teachers by removing and adding the difference. Availability is not checked: a teacher is assigned even if the teacher is already teaching at that time.
Argumente¶
Name | Typ | Beschreibung |
|---|---|---|
LessonID | ID of the lesson; the lesson must belong to a class subject that in turn belongs to a class group, otherwise the function does nothing and returns 0 | |
TeacherIDs | [integer] | list of teacher IDs the lesson should end up with. The current state is the teacher list of the class subject, as returned by GetLessonTeacherList: teachers on it that are not in the list are removed from the lesson, teachers in the list that are not on it are added, teachers in both stay untouched. An empty list removes all teachers from the lesson. |
Rückgabewertinteger¶
1 = the assignment was carried out, 0 = nothing was done because LessonID is 0 or because the lesson has no class subject or that class subject no class group. The return value only reports that the function ran; it does not tell whether every single teacher could really be added or removed, and it is 1 even when no teacher actually changed.
Beispiel¶
xxx