SetLessonRoomList (Opus Funktion)
Beschreibung¶
Mit dieser Funktion, kann man eine Liste der Räume einer Lektion zuteilen. Sets the room assignment of a lesson to exactly the given list of rooms by removing and adding the difference. Availability is not checked: a room is assigned even if it is already occupied at that time.
Argumente¶
Name | Typ | Beschreibung |
|---|---|---|
LessonID | ID of the lesson; 0 makes the function do nothing and return 0 | |
RoomIDs | integer[] | list of room IDs the lesson should end up with. Rooms that are currently assigned but not in the list are removed, rooms in the list that are not yet assigned are added, rooms in both stay untouched. An empty list removes all rooms from the lesson. |
Rückgabewertinteger¶
1 = the assignment was carried out, 0 = nothing was done because LessonID is 0. The return value only reports that the function ran; it does not tell whether every single room could really be added or removed, and it is 1 even when no room actually changed.
Beispiel¶
xxx