Wiki-Quellcode von Expertenmodus

Version 242.3 von Carina Enke am 09.01.2024

Zeige letzte Bearbeiter
1 {{layout}}
2 {{layout-section ac:type="single"}}
3 {{layout-cell}}
4 \\
5 {{/layout-cell}}
6 {{/layout-section}}
7
8 {{layout-section ac:type="single"}}
9 {{layout-cell}}
10 **Verwendungsbeispiele für Expertenregeln
11 **
12
13 Nachfolgend sind Beispiele aufgeführt, die Ihnen zeigen, wie Sie die Expertenregeln verwenden können.
14
15 \\
16
17 (% class="auto-cursor-target" %)
18 **Typische Anwendungsbeispiele**
19
20 {{expand title="In einem öffentlichen Kurs einzelne Inhalte nur für registrierte Nutzer sichtbar schalten ..."}}
21 Sie wollen Inhalte in einem öffentlichen Kurs vor Gästen verbergen? Tragen Sie im Tab Sichtbarkeit des betreffenden Kursbausteins bei Expertenmodus in das Textfeld nachfolgenden Inhalt ein. Damit wird der Kursbaustein in einem öffentlich zugänglichen Kurs für nicht registrierte Gastnutzer angezeigt.
22
23 {{code}}
24 isGuest()=false
25 {{/code}}
26
27 (% class="wrapped" %)
28 |=(((
29 Konfiguration im Kurseditor
30 )))|(((
31 (% class="content-wrapper" %)
32 (((
33 [[image:attach:Kurseditor - Konfiguration nur registrierte Nutzer_de.png]]
34 )))
35 )))
36 |=(% colspan="1" %)(% colspan="1" %)
37 (((
38 Ansicht als registrierter Nutzer
39 )))|(% colspan="1" %)(% colspan="1" %)
40 (((
41 (% class="content-wrapper" %)
42 (((
43 [[image:attach:Kursrun - Ansicht registrierte Nutzer_de.png]]
44 )))
45 )))
46 |=(((
47 Ansicht als Gastnutzer
48 )))|(((
49 [[image:attach:Kurseditor - Konfiguration nicht für Gäste_de.png]]
50 )))
51 |=(% colspan="1" %)(% colspan="1" %)
52 (((
53 Ansicht als Kursverantwortlicher
54 )))|(% colspan="1" %)(% colspan="1" %)
55 (((
56 (% class="content-wrapper" %)
57 (((
58 [[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png]]
59 )))
60 )))
61 {{/expand}}
62
63 {{expand title="In einem öffentlichen Kurs einzelne Inhalte nur für Gäste sichtbar schalten ..."}}
64 Sie wollen Inhalte in einem öffentlichen Kurs ausschließlich Gästen und Kursverantwortlichen anzeigen? Tragen Sie im Tab Sichtbarkeit des betreffenden Kursbausteins bei Expertenmodus in das Textfeld nachfolgenden Inhalt ein. Damit wird der Kursbaustein in einem öffentlich zugänglichen Kurs nur Gastnutzern und Kursverantwortlichen angezeigt.
65
66 {{code}}
67 isGuest()=true |isCourseAdministrator()
68 {{/code}}
69
70 (% class="wrapped" %)
71 |=(((
72 Konfiguration im Kurseditor
73 )))|(((
74 (% class="content-wrapper" %)
75 (((
76 [[image:attach:Kurseditor - Konfiguration nur Gäste und Kursverantwortliche_de.png]]
77 )))
78 )))
79 |=(% colspan="1" %)(% colspan="1" %)
80 (((
81 Ansicht als registrierter Nutzer
82 )))|(% colspan="1" %)(% colspan="1" %)
83 (((
84 (% class="content-wrapper" %)
85 (((
86 [[image:attach:Kursansicht - nicht für registrierte Nutzer_de.png]]
87 )))
88 )))
89 |=(((
90 Ansicht als Gastnutzer
91 )))|(((
92 [[image:attach:Kursrun - Ansicht nur Gäste_de.png]]
93 )))
94 |=(% colspan="1" %)(% colspan="1" %)
95 (((
96 Ansicht als Kursverantwortlicher
97 )))|(% colspan="1" %)(% colspan="1" %)
98 (((
99 (% class="content-wrapper" %)
100 (((
101 [[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png]]
102 )))
103 )))
104 {{/expand}}
105 {{/layout-cell}}
106 {{/layout-section}}
107
108 {{layout-section ac:type="single"}}
109 {{layout-cell}}
110 {{expand title="Kursinhalte nach Testergebnis freigeben ..."}}
111 Sie wollen Inhalte in Abhängigkeit eines Tests freigeben? Die Umsetzung dieses Szenarios wird auf der Seite [[doc:LMS._Include Library.Course Pages.Expert Mode.Lernwegsteuerung nach Testergebnis]] erläutert.
112 {{/expand}}
113 {{/layout-cell}}
114 {{/layout-section}}
115
116 {{layout-section ac:type="single"}}
117 {{layout-cell}}
118 {{expand title="Weitere Anwendungsbeispiele für Expertenregeln ..."}}
119 {{info}}
120 Neben den allgemeinen Beispielen, die unabhängig von der Institution verwendet werden können, sind auch Einschränkungen zu Daten möglich, welche institutionsspezifisch sind und je nach Institution übermittelt werden.
121 Für OPAL-Nutzer enthält die Seite [[Übersicht der OPAL-Shibboleth-Attribute>>url:https://bildungsportal.sachsen.de/help/attribute-opal_de.html||shape="rect"]] alle aktuell verwendbaren institutionsspezifischen Attribute sächsischer Institutionen.
122 {{/info}}
123
124 (% class="wrapped" %)
125 |=(((
126 Beispiele für Regeln in den Tabs //«//Sichtbarkeit//»//, //«//Zugang//»// und //«//Punkte//»// (Struktur-Baustein)
127 )))|=(((
128 Auswirkungen
129 )))
130 |(((
131 isGuest(0)=true
132 )))|(((
133 Eingetragen im Tab Sichtbarkeit sehen nur Gäste den Kursbaustein, alle registrierten Nutzer dagegen nicht.
134
135 Eingetragen im Tab Zugang haben ausschließlich Gäste Zugang zu diesem Kursbaustein.
136
137 Alternativ kann auch die Angabe isGuest(0) oder isGuest(0)=1 verwendet werden.
138 )))
139 |(% colspan="1" %)(% colspan="1" %)
140 (((
141 isGuest(0)=false
142 )))|(% colspan="1" %)(% colspan="1" %)
143 (((
144 Eingetragen im Tab Sichtbarkeit sehen Gäste den Kursbaustein nicht. Eingetragen im Tab Zugang haben Gäste keinen Zugang zu den Inhalten des Kursbausteins.
145 )))
146 |(((
147 inLearningGroup("Anfänger") = false
148 )))|(((
149 Mit Ausnahme der Gruppe //«//Anfänger//»// ist der Kursbaustein für alle Kursteilnehmer sichtbar.
150 )))
151 |(((
152 (now >= date("22.03.2017 12:00")) & (now <= date("23.08.2017 18:00")) | inLearningGroup("Betreuer")
153 )))|(((
154 Der Kursbaustein ist zwischen dem 22.03.2017 und 23.08.2017 für alle Kursteilnehmer sichtbar, während er für Mitglieder der Lerngruppe //«//Betreuer//»// jederzeit sichtbar ist.
155 )))
156 |(((
157 (now >= date("03.09.2017 00:00")) & (now <= date("13.10.2017 00:00")) & inRightGroup("Assessoren")| isUser("autor")
158 )))|(((
159 Der Kursbaustein ist zwischen dem 03.09.2017 und 13.10.2017 für alle Kursteilnehmer der Rechtegruppe //«//Assessoren//»// sichtbar, während er für die Person mit dem Benutzernamen //«//autor//»// jederzeit sichtbar ist.
160 )))
161 |(((
162 isInAttribute("surname","Mue")
163 )))|(((
164 Gibt TRUE für alle Personen, deren Attribut //«//surname//»// die Buchstabenfolge "Mue" enthält. Gibt z. B. TRUE für den Wert "Mueller" oder "Muehlebacher" zurück.
165 )))
166 |(% colspan="1" %)(% colspan="1" %)
167 (((
168 (getUserProperty("orgUnit") = "Marketing")
169 )))|(% colspan="1" %)(% colspan="1" %)
170 (((
171 Prüft, ob eine Person in der Organisationseinheit "Marketing" ist. Dies ist zum Beispiel sinnvoll, wenn die Daten automatisiert aus LDAP übernommen werden.
172 )))
173 |(% colspan="1" %)(% colspan="1" %)
174 (((
175 (getPassed("69742969114730") | getPassed("69742969115733") | getPassed("69742969118009")) * 10
176 )))|(% colspan="1" %)(% colspan="1" %)
177 (((
178 Diese Regel wird im Tab //«//Punkte//»// -> //«//Punkte verarbeiten//»// des Bausteins Struktur gesetzt. Der Baustein Struktur zeigt 10 Punkte, wenn einer der Tests (Kursbaustein-IDs "69742969114730", "69742969115733" oder "69742969118009") bestanden wurde, sonst 0 Punkte.
179 )))
180 |(% colspan="1" %)(% colspan="1" %)
181 (((
182 (getScore("69742969114730") + getScore("69742969115733") + getScore("69742969118009")) >= 140 | getPassed("69978845384688")
183 )))|(% colspan="1" %)(% colspan="1" %)
184 (((
185 Diese Regel wird im Tab //«//Punkte//»// -> //«//Bestanden wenn//»// des Bausteins Struktur gesetzt. Der Baustein Struktur zeigt ein //«//Bestanden//»//, wenn in allen Tests zusammen minimal 140 Punkte erzielt werden oder wenn manuell ein //«//Bestanden//»// gesetzt wird (Kursbaustein Bewertung mit ID "69978845384688").
186 )))
187 |(% colspan="1" %)(% colspan="1" %)
188 (((
189 getAttempts("70323786958847") > 0
190 )))|(% colspan="1" %)(% colspan="1" %)
191 (((
192 Gibt TRUE zurück, sobald der betreffende Kursteilnehmer den Test mit spezifizierter ID ein erstes Mal abgeschlossen hat.
193 )))
194 |(% colspan="1" %)(% colspan="1" %)
195 (((
196 getAttempts("70323524635734") <= 3
197 )))|(% colspan="1" %)(% colspan="1" %)
198 (((
199 Gibt FALSE zurück, sobald der betreffende Kursteilnehmer mehr als 3 Dateien in den Abgabeordner des Kursbausteins Aufgabe gelegt hat.
200 )))
201 |(% colspan="1" %)(% colspan="1" %)
202 (((
203 getInitialEnrollmentDate("70323786958847") <= date("26.5.2017 18:00")
204 )))|(% colspan="1" %)(% colspan="1" %)
205 (((
206 Gibt TRUE für diejenigen Kursteilnehmer zurück, die sich vor 18 Uhr des 26. Mai 2017 über den Kursbaustein Einschreibung mit spezifizierter ID in eine zur Auswahl stehende Gruppe eingeschrieben haben.
207 )))
208 |(% colspan="1" %)(% colspan="1" %)
209 (((
210 getInitialEnrollmentDate("70323786958847") + 2h > now
211 )))|(% colspan="1" %)(% colspan="1" %)
212 (((
213 Gibt TRUE während zwei Stunden ab Einschreibezeitpunkt für diejenigen Kursteilnehmer zurück, die sich über den Kursbaustein Einschreibung mit spezifizierter ID in eine zur Auswahl stehende Gruppe eingeschrieben haben. So kann abgebildet werden, dass jeder Kursteilnehmer nur während einer bestimmten Zeitdauer z. B. ein Skript bearbeiten kann.
214 )))
215 |(% colspan="1" %)(% colspan="1" %)
216 (((
217 (getInitialCourseLaunchDate(0) >= never) | (getInitialCourseLaunchDate(0) + 2h > now)
218 )))|(% colspan="1" %)(% colspan="1" %)
219 (((
220 Gibt TRUE zurück, wenn der Kursteilnehmer den Kurs noch nicht besucht hat oder während der ersten zwei Stunden des ersten Kursbesuchs. So kann abgebildet werden, dass jeder Kursteilnehmer nur während einer bestimmten Zeitdauer den Kurs sehen kann.
221 )))
222 |(% colspan="1" %)(% colspan="1" %)
223 (((
224 (getRecentCourseLaunchDate(0) + 10min) > now
225 )))|(% colspan="1" %)(% colspan="1" %)
226 (((
227 Gibt TRUE zurück, wenn sich der Benutzer seit mehr als 10 Minuten im Kurs bewegt.
228 )))
229 |(% colspan="1" %)(% colspan="1" %)
230 (((
231 getOnyxTestOutcome("84692289655276","SCORE") >= 10
232 )))|(% colspan="1" %)(% colspan="1" %)
233 (((
234 Gibt TRUE zurück, wenn der Benutzer mindestens 10 Punkte erreicht hat.
235 )))
236 |(% colspan="1" %)(% colspan="1" %)
237 (((
238 getOnyxTestOutcomeZK("84389429397045","PASS") ="true"
239 )))|(% colspan="1" %)(% colspan="1" %)
240 (((
241 Gibt TRUE zurück, wenn der Benutzer den Test bestanden hat.
242 )))
243 |(% colspan="1" %)(% colspan="1" %)
244 (((
245 getMark("84692289655276") > 4
246 )))|(% colspan="1" %)(% colspan="1" %)
247 (((
248 Gibt TRUE zurück, wenn die Note des Nutzers für den angegebenen Baustein besser als 4 ist.
249 )))
250 |(% colspan="1" %)(% colspan="1" %)
251 (((
252 getProgress("69742969114730")>=100
253 )))|(% colspan="1" %)(% colspan="1" %)
254 (((
255 Gibt TRUE zurück, wenn der Nutzer den angegebenen Kursbaustein erledigt hat (Kursfortschritt).
256 )))
257
258 {{note title="Achtung!"}}
259 Bitte beachten Sie, dass die oben erwähnten Kursbaustein-IDs Beispiele sind. Wenn Sie Ihren Kurs erstellen, müssen Sie jeweils die IDs Ihrer Kurse referenzieren.
260 {{/note}}
261 {{/expand}}
262 {{/layout-cell}}
263 {{/layout-section}}
264
265 {{layout-section ac:type="single"}}
266 {{layout-cell}}
267 (% class="auto-cursor-target" %)
268 **Expertnsyntax**
269
270 {{expand title="Übersicht der verfügbaren Expertensyntax ..."}}
271 (% class="wrapped" %)
272 |=(((
273 Typ
274 )))|=(((
275 Syntax
276 )))|=(((
277 Bedeutung
278 )))
279 |(% rowspan="2" %)(% rowspan="2" %)
280 (((
281 **Konstanten**
282 )))|(((
283 //TRUE// oder //1//
284 )))|(((
285 Wahr
286 )))
287 |(((
288 //FALSE// oder //0//
289 )))|(((
290 Falsch
291 )))
292 |(% colspan="1" %)(% colspan="1" %)
293 (((
294 **Variable**
295 )))|(% colspan="1" %)(% colspan="1" %)
296 (((
297 //now//
298 )))|(% colspan="1" %)(% colspan="1" %)
299 (((
300 Momentane Server-Systemzeit
301 )))
302 |(% rowspan="37" %)(% rowspan="37" %)
303 (((
304 **Funktionen**
305 )))|(% colspan="1" %)(% colspan="1" %)
306 (((
307 //date("//[date]//")//
308 )))|(% colspan="1" %)(% colspan="1" %)
309 (((
310 Datum abfragen
311 )))
312 |(% colspan="1" %)(% colspan="1" %)
313 (((
314 //inLearningGroup("//[string]//")//
315 )))|(% colspan="1" %)(% colspan="1" %)
316 (((
317 Gibt TRUE für alle Mitglieder der Lerngruppe mit dem Titel [string] des aktuellen Kurses zurück.
318 )))
319 |(% colspan="1" %)(% colspan="1" %)
320 (((
321 //inLearningGroup("//[string1]//","//[string2]//")//
322 )))|(% colspan="1" %)(% colspan="1" %)
323 (((
324 Gibt TRUE für alle Mitglieder der angegebenen Lerngruppe [string1] des Kurses mit der angegebenen Kurs-ID=[string2] zurück.
325 )))
326 |(% colspan="1" %)(% colspan="1" %)
327 (((
328 //inLearningGroupWaitingList("//[string]//")//
329 )))|(% colspan="1" %)(% colspan="1" %)
330 (((
331 Gibt TRUE für alle Benutzer in der Warteliste der Lerngruppe [string] des aktuellen Kurses zurück.
332 )))
333 |(% colspan="1" %)(% colspan="1" %)
334 (((
335 //inLearningGroupWaitingList("//[string1]//","//[string2]//")//
336 )))|(% colspan="1" %)(% colspan="1" %)
337 (((
338 Gibt TRUE für alle Benutzer in der Warteliste der Lerngruppe [string1] des Kurses mit der angegebenen Kurs-ID=[string2] zurück.
339 )))
340 |(% colspan="1" %)(% colspan="1" %)
341 (((
342 //inRightGroup("//[string]//")//
343 )))|(% colspan="1" %)(% colspan="1" %)
344 (((
345 Gibt TRUE für alle Mitglieder der Rechtegruppe [string] zurück.
346 )))
347 |(% colspan="1" %)(% colspan="1" %)
348 (((
349 //isLearningGroupFull("//[string]//")//
350 )))|(% colspan="1" %)(% colspan="1" %)
351 (((
352 Gibt für die angegebene Lerngruppe im aktuellen Kurs den Boolean TRUE (=voll) oder FALSE (=nicht voll) zurück.
353 )))
354 |(% colspan="1" %)(% colspan="1" %)
355 (((
356 //isLearningGroupFull("//[string1]//","//[string2]//")//
357 )))|(% colspan="1" %)(% colspan="1" %)
358 (((
359 Gibt für die angegebene Lerngruppe=[string1] des Kurses mit Kurs-ID=[string2] den Boolean TRUE (=voll) oder FALSE (=nicht voll) zurück.
360 )))
361 |(% colspan="1" %)(% colspan="1" %)
362 (((
363 //isUser("//[string]//")//
364 )))|(% colspan="1" %)(% colspan="1" %)
365 (((
366 Gibt TRUE für den Benutzer mit dem Benutzernamen [string] zurück.
367 )))
368 |(% colspan="1" %)(% colspan="1" %)
369 (((
370 //inLearningArea("//[string]//")//
371 )))|(% colspan="1" %)(% colspan="1" %)
372 (((
373 Gibt TRUE für alle Mitglieder der Gruppen im Lernbereich [string] des aktuellen Kurses zurück.
374 )))
375 |(% colspan="1" %)(% colspan="1" %)
376 (((
377 //inLearningArea("//[string1]//","//[string2]//")//
378 )))|(% colspan="1" %)(% colspan="1" %)
379 (((
380 Gibt TRUE für alle Mitglieder der Gruppen im angegebenen Lernbereich [string1] des Kurses mit der angegebenen Kurs-ID=[string2] zurück.
381 )))
382 |(% colspan="1" %)(% colspan="1" %)
383 (((
384 //getNumberOfEnrollments("//[string1]*//")//
385 )))|(% colspan="1" %)(% colspan="1" %)
386 (((
387 Gibt TRUE zurück, wenn die konfigurierte Anzahl der Lerngruppenmitgliedschaften im Lernbereich (string1) erreicht ist.
388 )))
389 |(% colspan="1" %)(% colspan="1" %)
390 (((
391 //isGlobalAuthor()//
392 )))|(% colspan="1" %)(% colspan="1" %)
393 (((
394 Gibt TRUE für alle Mitglieder der OPAL-Autorengruppe zurück.
395 )))
396 |(% colspan="1" %)(% colspan="1" %)
397 (((
398 //isCourseAdministrator()//
399 )))|(% colspan="1" %)(% colspan="1" %)
400 (((
401 Gibt TRUE für alle Besitzer Ihres Kurses (Lernressource) zurück.
402 )))
403 |(% colspan="1" %)(% colspan="1" %)
404 (((
405 //isCourseCoach()//
406 )))|(% colspan="1" %)(% colspan="1" %)
407 (((
408 Gibt TRUE für alle Benutzer zurück, die eine Lerngruppe betreuen.
409 )))
410 |(% colspan="1" %)(% colspan="1" %)
411 (((
412 //isGuest()//
413 )))|(% colspan="1" %)(% colspan="1" %)
414 (((
415 Gibt TRUE für alle Benutzer zurück, die OPAL als Gäste besuchen.
416 )))
417 |(% colspan="1" %)(% colspan="1" %)
418 (((
419 //isExternalUser()//
420 )))|(% colspan="1" %)(% colspan="1" %)
421 (((
422 Gibt TRUE für alle zurück, die OPAL als externe Benutzer verwenden.
423 )))
424 |(% colspan="1" %)(% colspan="1" %)
425 (((
426 //hasAttribute("//[AttrName]//","//[string]//")//
427 )))|(% colspan="1" %)(% colspan="1" %)
428 (((
429 Gibt TRUE zurück, wenn [string] dem Wert des AAI-Attributs [AttrName] des jeweiligen Benutzers entspricht.
430 )))
431 |(% colspan="1" %)(% colspan="1" %)
432 (((
433 //isInAttribute("//[AttrName]//","//[substring]//")//
434 )))|(% colspan="1" %)(% colspan="1" %)
435 (((
436 Gibt TRUE zurück, wenn [substring] einem Teil des Wertes des AAI-Attributs [AttrName] des jeweiligen Benutzers entspricht.
437 )))
438 |(% colspan="1" %)(% colspan="1" %)
439 (((
440 //getUserProperty("//[string]//")//
441 )))|(% colspan="1" %)(% colspan="1" %)
442 (((
443 Gibt die angegebene Benutzer-Eigenschaft des ausführenden Nutzers zurück.
444 )))
445 |(% colspan="1" %)(% colspan="1" %)
446 (((
447 //getPassed("//[integer]//")//
448 )))|(% colspan="1" %)(% colspan="1" %)
449 (((
450 Gibt vom Kursbaustein mit spezifizierter ID den Boolean TRUE (=Bestanden) oder FALSE (=Nicht bestanden) zurück.
451 )))
452 |(% colspan="1" %)(% colspan="1" %)
453 (((
454 //getScore("//[integer]//")//
455 )))|(% colspan="1" %)(% colspan="1" %)
456 (((
457 Gibt vom Kursbaustein mit spezifizierter ID die Anzahl der Punkte zurück.
458 )))
459 |(% colspan="1" %)(% colspan="1" %)
460 (((
461 //getAttempts("//[integer]//")//
462 )))|(% colspan="1" %)(% colspan="1" %)
463 (((
464 Gibt vom Kursbaustein mit spezifizierter ID die Anzahl abgeschlossener Versuche zurück. Kann auf Kursbausteine vom Typ Test, Selbsttest, Fragebogen (mögliche Rückgabewerte 0 oder 1) und Aufgabe (Rückgabewert = Anzahl abgegebener Dateien) angewandt werden.
465 )))
466 |(% colspan="1" %)(% colspan="1" %)
467 (((
468 //getInitialEnrollmentDate("//[integer]//")//
469 )))|(% colspan="1" %)(% colspan="1" %)
470 (((
471 Gibt vom Kursbaustein Einschreibung mit spezifizierter ID das Datum des erstmaligen Einschreibens des betreffenden Kursteilnehmers zurück.
472 )))
473 |(% colspan="1" %)(% colspan="1" %)
474 (((
475 //getRecentEnrollmentDate("//[integer]//")//
476 )))|(% colspan="1" %)(% colspan="1" %)
477 (((
478 Gibt vom Kursbaustein Einschreibung mit spezifizierter ID das Datum des letzten Einschreibens des betreffenden Kursteilnehmers zurück.
479 )))
480 |(% colspan="1" %)(% colspan="1" %)
481 (((
482 //getInitialCourseLaunchDate()//
483 )))|(% colspan="1" %)(% colspan="1" %)
484 (((
485 Gibt das Datum des erstmaligen Kursbesuchs des betreffenden Kursteilnehmers zurück.
486 )))
487 |(% colspan="1" %)(% colspan="1" %)
488 (((
489 //getRecentCourseLaunchDate()//
490 )))|(% colspan="1" %)(% colspan="1" %)
491 (((
492 Gibt das Datum des letzten Kursbesuchs des betreffenden Kursteilnehmers zurück.
493 )))
494 |(% colspan="1" %)(% colspan="1" %)
495 (((
496 //getPassedWithCourseId("//[integer-1]//","//[integer-2]//")//
497 )))|(% colspan="1" %)(% colspan="1" %)
498 (((
499 Gibt vom Kursbaustein mit ID=[integer-2] des Kurses mit ID=[integer-1] den Boolean TRUE (=Bestanden) oder FALSE (=Nicht bestanden) zurück.
500 )))
501 |(% colspan="1" %)(% colspan="1" %)
502 (((
503 //getScoreWithCourseId("//[integer-1]//","//[integer-2]//")//
504 )))|(% colspan="1" %)(% colspan="1" %)
505 (((
506 Gibt vom Kursbaustein mit ID=[integer-2] des Kurses mit ID=[integer-1] die Anzahl der Punkte zurück.
507 )))
508 |(% colspan="1" %)(% colspan="1" %)
509 (((
510 //getMarkWithCourseId("//[integer-1]//","//[integer-2]//")//
511 )))|(% colspan="1" %)(% colspan="1" %)
512 (((
513 Gibt vom Kursbaustein mit ID=[integer-2] des Kurses mit ID=[integer-1] die Note zurück.
514 )))
515 |(% colspan="1" %)(% colspan="1" %)
516 (((
517 //hasEvaluationCompleted("//KB-ID//")//
518 )))|(% colspan="1" %)(% colspan="1" %)
519 (((
520 Gibt TRUE für alle Benutzer zurück, die den angegebenen Kursbaustein erfolgreich beendet haben.
521 )))
522 |(% colspan="1" %)(% colspan="1" %)
523 (((
524 //getNumberOfEnrollments("//[string1]*//")//
525 )))|(% colspan="1" %)(% colspan="1" %)
526 (((
527 Gibt TRUE zurück, wenn die konfigurierte Anzahl der Lerngruppenmitgliedschaften im Lernbereich (string1) erreicht ist.
528 )))
529 |(% colspan="1" %)(% colspan="1" %)
530 (((
531 //getOnyxTestOutcome("//[string1]//","//[string2]//")//
532 )))|(% colspan="1" %)(% colspan="1" %)
533 (((
534 Gibt vom Onyx-Test-Kursbaustein mit spezifizierter ID (string1) und spezifizierter Ausgabevariable (string2) den Wert dieser Variablen zurück. Der Rückgabewert ist eine Zahl.
535 )))
536 |(% colspan="1" %)(% colspan="1" %)
537 (((
538 //getOnyxTestOutcomeZK("//[string1]//","//[string2]//")//
539 )))|(% colspan="1" %)(% colspan="1" %)
540 (((
541 Gibt vom Onyx-Test-Kursbaustein mit spezifizierter ID (string1) und spezifizierter Ausgabevariable (string2) den Wert dieser Variablen zurück. Der Rückgabewert ist eine Zeichenkette.
542 )))
543 |(% colspan="1" %)(% colspan="1" %)
544 (((
545 //getProgress(//"[integer]"//)//
546 )))|(% colspan="1" %)(% colspan="1" %)
547 (((
548 Gibt vom Kursbaustein mit spezifizierter ID den Fortschritt als numerischen Wert zwischen 0 und 100 (Prozent) zurück.
549 )))
550 |(% colspan="1" %)(% colspan="1" %)
551 (((
552 //isPasswordConfirmed("//[string]")
553 )))|(% colspan="1" %)(% colspan="1" %)
554 (((
555 Gibt TRUE nach Eingabe des korrekten Passworts (string1) zurück.
556
557 Kann nur bei Kursbausteinen verwendet werden, die auch im einfachen Modus eine Passwortbeschränkung anbieten.
558 )))
559 |(% colspan="1" %)(% colspan="1" %)
560 (((
561 //comesFrom("//[string]//")//
562 )))|(% colspan="1" %)(% colspan="1" %)
563 (((
564 Gibt TRUE zurück, wenn der Nutzer ein verlinktes Konto zum OLAT mit der angegebenen System-ID hat.
565 )))
566 |(% rowspan="4" %)(% rowspan="4" %)
567 (((
568 **Einheiten**
569 )))|(% colspan="1" %)(% colspan="1" %)
570 (((
571 //min//
572 )))|(% colspan="1" %)(% colspan="1" %)
573 (((
574 Minuten
575 )))
576 |(% colspan="1" %)(% colspan="1" %)
577 (((
578 //h//
579 )))|(% colspan="1" %)(% colspan="1" %)
580 (((
581 Stunden
582 )))
583 |(% colspan="1" %)(% colspan="1" %)
584 (((
585 //w//
586 )))|(% colspan="1" %)(% colspan="1" %)
587 (((
588 Wochen
589 )))
590 |(% colspan="1" %)(% colspan="1" %)
591 (((
592 //m//
593 )))|(% colspan="1" %)(% colspan="1" %)
594 (((
595 Monate
596 )))
597 |(% rowspan="9" %)(% rowspan="9" %)
598 (((
599 **Operatoren**
600 )))|(% colspan="1" %)(% colspan="1" %)
601 (((
602 ~=
603 )))|(% colspan="1" %)(% colspan="1" %)
604 (((
605 gleich
606 )))
607 |(% colspan="1" %)(% colspan="1" %)
608 (((
609 ~>
610 )))|(% colspan="1" %)(% colspan="1" %)
611 (((
612 größer als
613 )))
614 |(% colspan="1" %)(% colspan="1" %)
615 (((
616 <
617 )))|(% colspan="1" %)(% colspan="1" %)
618 (((
619 kleiner als
620 )))
621 |(% colspan="1" %)(% colspan="1" %)
622 (((
623 ~>=
624 )))|(% colspan="1" %)(% colspan="1" %)
625 (((
626 größer gleich
627 )))
628 |(% colspan="1" %)(% colspan="1" %)
629 (((
630 <=
631 )))|(% colspan="1" %)(% colspan="1" %)
632 (((
633 kleiner gleich
634 )))
635 |(% colspan="1" %)(% colspan="1" %)
636 (((
637 *
638 )))|(% colspan="1" %)(% colspan="1" %)
639 (((
640 Multiplikation
641 )))
642 |(% colspan="1" %)(% colspan="1" %)
643 (((
644 /
645 )))|(% colspan="1" %)(% colspan="1" %)
646 (((
647 Division
648 )))
649 |(% colspan="1" %)(% colspan="1" %)
650 (((
651 +
652 )))|(% colspan="1" %)(% colspan="1" %)
653 (((
654 Addition
655 )))
656 |(% colspan="1" %)(% colspan="1" %)
657 (((
658 -
659 )))|(% colspan="1" %)(% colspan="1" %)
660 (((
661 Subtraktion
662 )))
663 |(% rowspan="3" %)(% rowspan="3" %)
664 (((
665 **Booleans**
666 \\
667 )))|(% colspan="1" %)(% colspan="1" %)
668 (((
669 &
670 )))|(% colspan="1" %)(% colspan="1" %)
671 (((
672 Logisches UND
673 )))
674 |(% colspan="1" %)(% colspan="1" %)
675 (((
676 ~|
677 )))|(% colspan="1" %)(% colspan="1" %)
678 (((
679 Logisches ODER
680 )))
681 |(% colspan="1" %)(% colspan="1" %)
682 (((
683 !
684 )))|(% colspan="1" %)(% colspan="1" %)
685 (((
686 Logisches NICHT
687 )))
688 {{/expand}}
689 {{/layout-cell}}
690 {{/layout-section}}
691 {{/layout}}
692
693
694
695 {{layout}}
696 {{layout-section ac:type="single"}}
697 {{layout-cell}}
698 **Application examples of expert rules**
699
700 In the following, you will find examples of how to use the expert syntax.
701 {{/layout-cell}}
702 {{/layout-section}}
703
704 {{layout-section ac:type="single"}}
705 {{layout-cell}}
706 \\
707 {{/layout-cell}}
708 {{/layout-section}}
709
710 {{layout-section ac:type="single"}}
711 {{layout-cell}}
712 **Typical application examples**
713
714 {{expand title="Make individual content elements in a public course only visible to registered users ..."}}
715 Do you wish to hide certain content elements in a public course from guests? Then enter the following code into the text field next to Expert mode in the Visibility tab of the corresponding course element. This will hide the course element in a publicly accessible course from non-registered guest users.
716
717 {{code}}
718 isGuest(0)=false
719 {{/code}}
720
721 (% class="wrapped" %)
722 |=(((
723 Configuration in the course editor
724 )))|(((
725 (% class="content-wrapper" %)
726 (((
727 [[image:attach:Kurseditor - Konfiguration nur registrierte Nutzer_de.png]]
728 )))
729 )))
730 |=(((
731 Course view as a registered user
732 )))|(((
733 (% class="content-wrapper" %)
734 (((
735 [[image:attach:Kursrun - Ansicht registrierte Nutzer_de.png]]
736 )))
737 )))
738 |=(((
739 Course view as a guest user
740 )))|(((
741 (% class="content-wrapper" %)
742 (((
743 [[image:attach:Kurseditor - Konfiguration nicht für Gäste_de.png]]
744 )))
745 )))
746 |=(((
747 Course view as a course owner
748 )))|(((
749 (% class="content-wrapper" %)
750 (((
751 [[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png]]
752 )))
753 )))
754 {{/expand}}
755
756 {{expand title="Make individual content elements in a public course only visible to guests ..."}}
757 Do you wish to display certain content elements in a public course only to guests and course owners? Then enter the following code into the text field next to Expert mode in the Visibility tab of the corresponding course element. This will display the course element in a publicly accessible course only to guest users and course owners.
758
759 {{code}}
760 isGuest(0)=true |isCourseAdministrator(0)
761 {{/code}}
762
763 (% class="wrapped" %)
764 |=(((
765 Configuration in the course editor
766 )))|(((
767 (% class="content-wrapper" %)
768 (((
769 [[image:attach:Kurseditor - Konfiguration keine Gäste_de.png]]
770 )))
771 )))
772 |=(((
773 Course view as a registered user
774 )))|(((
775 (% class="content-wrapper" %)
776 (((
777 [[image:attach:Kursansicht - nicht für registrierte Nutzer_de.png]]
778 )))
779 )))
780 |=(((
781 Course view as a guest user
782 )))|(((
783 (% class="content-wrapper" %)
784 (((
785 [[image:attach:Kursrun - Ansicht nur Gäste_de.png]]
786 )))
787 )))
788 |=(((
789 Course view as a course owner
790 )))|(((
791 (% class="content-wrapper" %)
792 (((
793 [[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png]]
794 )))
795 )))
796 {{/expand}}
797 {{/layout-cell}}
798 {{/layout-section}}
799
800 {{layout-section ac:type="single"}}
801 {{layout-cell}}
802 {{expand title="Activate course elements according to test result ..."}}
803 Do you wish to activate certain course elements depending on a test? For instructions on how to implement this scenario, see the help page [[Learning path control by test result>>url:https://www.bps-system.de/help/display/LMSintern/.Lernwegsteuerung+nach+Testergebnis+v12.4||shape="rect"]].
804 {{/expand}}
805 {{/layout-cell}}
806 {{/layout-section}}
807
808 {{layout-section ac:type="single"}}
809 {{layout-cell}}
810 {{expand title="Further application examples of the expert syntax ..."}}
811 {{info}}
812 In addition to the general examples, which can be used institution-independently, there are also institution-specific restrictions on data that will be transmitted depending on the institution.
813
814 For OPAL users, the help page [[Overview of OPAL Shibboleth attributes>>url:https://bildungsportal.sachsen.de/help/attribute-opal_de.html||shape="rect"]] contains all currently usable institution-specific attributes of Saxon institutions.
815 {{/info}}
816
817 (% class="wrapped" %)
818 |=(((
819 (% style="color: rgb(63,68,68);" %)Examples of rules in the tabs //«//Visibility// », « //Access// », //and //« //Points// » //(structure element)
820 )))|=(((
821 Effects
822 )))
823 |(((
824 (% class="TableParagraph" %)
825 isGuest(0)=true
826 )))|(((
827 (% class="TableParagraph" %)
828 If this code is entered in the Visibility tab, the course element will only be visible to guests, but not to registered users.
829
830 (% class="TableParagraph" %)
831 If this code is entered in the Access tab, only guests will have access to this course element.
832
833 (% class="TableParagraph" %)
834 Alternatively, the code isGuest(0) or isGuest (0)=1 can be used.
835 )))
836 |(% colspan="1" %)(% colspan="1" %)
837 (((
838 isGuest(0)=false
839 )))|(% colspan="1" %)(% colspan="1" %)
840 (((
841 If this code is entered in the Visibility tab, the course element will be hidden from guests.
842
843 If this code is entered in the Access tab, guests will not have access to the course element's contents.
844 )))
845 |(((
846 (% class="TableParagraph" %)
847 inLearningGroup("Beginners") = false
848 )))|(((
849 (% class="TableParagraph" %)
850 With the exception of the «Beginners» group//,// the course element will be visible to all course participants.
851 )))
852 |(((
853 (% class="TableParagraph" %)
854 (now >= date("22.03.2017 12:00")) & (now <= date("23.08.2017 18:00")) | inLearningGroup("Supervisors")
855 )))|(((
856 (% class="TableParagraph" %)
857 The course element will be visible to all course participants from 22.03.2017 to 23.08.2017. For the members of the «Supervisors» learning group//, //in contrast, it will be visible// //at any time//.//
858 )))
859 |(((
860 (% class="TableParagraph" %)
861 (now >= date("03.09.2017 00:00")) & (now <= date("13.10.2017 00:00")) & inRightGroup("Assessors")| isUser("Author")
862 )))|(((
863 (% class="TableParagraph" %)
864 The course element will be visible to all course participants of the «Assessors» right group from 03.09.2017 to 13.10.2017. For the user with the user name «Author»//, //in contrast, it will be visible at any time.
865 )))
866 |(% colspan="1" %)(% colspan="1" %)
867 (((
868 (% class="TableParagraph" %)
869 isInAttribute("surname","Mue")
870 )))|(% colspan="1" %)(% colspan="1" %)
871 (((
872 (% class="TableParagraph" %)
873 Returns TRUE for all users whose «surname» attribute contains// //the letter sequence "Mue". For example, it returns TRUE for the value "Mueller" or "Muehlebacher".
874 )))
875 |(% colspan="1" %)(% colspan="1" %)
876 (((
877 (% class="TableParagraph" %)
878 (getUserProperty("orgUnit") = "Marketing")
879 )))|(% colspan="1" %)(% colspan="1" %)
880 (((
881 (% class="TableParagraph" %)
882 Checks whether a person is in the "Marketing" organisation unit. This is useful, for example, if the data is automatically transferred from LDAP.
883 )))
884 |(% colspan="1" %)(% colspan="1" %)
885 (((
886 (% class="TableParagraph" %)
887 (getPassed("69742969114730") | getPassed("69742969115733") | getPassed("69742969118009")) * 10
888 )))|(% colspan="1" %)(% colspan="1" %)
889 (((
890 (% class="TableParagraph" %)
891 This rule can be set in the «Points» tab -> «Process points» of the Structure course element. The Structure course element shows 10 points if any of the tests (course element IDs "69742969114730", "69742969115733", or "69742969118009") will be passed, otherwise it shows 0 points.
892 )))
893 |(% colspan="1" %)(% colspan="1" %)
894 (((
895 (getScore("69742969114730") + getScore("69742969115733") + getScore("69742969118009")) >= 140 | getPassed("69978845384688")
896 )))|(% colspan="1" %)(% colspan="1" %)
897 (((
898 (% class="TableParagraph" %)
899 This rule can be set in the «Points» tab ->
900
901 «Passed if» of the Structure course element. The Structure course element// //shows "passed" if a minimum of 140 points will be achieved across all tests or if «passed» will be manually set (Assessment course element// //with the ID "69978845384688").
902 )))
903 |(% colspan="1" %)(% colspan="1" %)
904 (((
905 (% class="TableParagraph" %)
906 getAttempts("70323786958847") > 0
907 )))|(% colspan="1" %)(% colspan="1" %)
908 (((
909 (% class="TableParagraph" %)
910 Returns TRUE as soon as the course participant has completed the test with the specified ID for the first time.
911 )))
912 |(((
913 (% class="TableParagraph" %)
914 getAttempts("70323524635734") <= 3
915 )))|(((
916 (% class="TableParagraph" %)
917 Returns FALSE as soon as the course participant has saved more than 3 files to the drop box of the Task course element.
918 )))
919 |(((
920 (% class="TableParagraph" %)
921 getInitialEnrollmentDate("70323786958847") <= date("26.5.2017 18:00")
922 )))|(((
923 (% class="TableParagraph" %)
924 Returns TRUE for those course participants who enrolled in one of the available groups via the Enrolment course element using a specified ID before 6 p.m. on May 26 2017.
925 )))
926 |(% colspan="1" %)(% colspan="1" %)
927 (((
928 (% class="TableParagraph" %)
929 getInitialEnrollmentDate("70323786958847") + 2h > now
930 )))|(% colspan="1" %)(% colspan="1" %)
931 (((
932 (% class="TableParagraph" %)
933 Returns TRUE within two hours from the time of enrolment for those course participants who enrolled in one of the available groups via the Enrolment course element using a specified ID. In this way, it can be ensured that each course participant can only e.g. process a script during a certain period of time.
934 )))
935 |(% colspan="1" %)(% colspan="1" %)
936 (((
937 (% class="TableParagraph" %)
938 (getInitialCourseLaunchDate(0) >= never) | (getInitialCourseLaunchDate(0) + 2h > now)
939 )))|(% colspan="1" %)(% colspan="1" %)
940 (((
941 (% class="TableParagraph" %)
942 Returns TRUE if the course participant has not yet visited the course, or during the first two hours of the first course visit. In this way, it can be ensured that each course participant can only see the course for a certain period of time.
943 )))
944 |(% colspan="1" %)(% colspan="1" %)
945 (((
946 (% class="TableParagraph" %)
947 (getRecentCourseLaunchDate(0) + 10min) > now
948 )))|(% colspan="1" %)(% colspan="1" %)
949 (((
950 (% class="TableParagraph" %)
951 Returns TRUE if the user has been active in the course for more than 10 minutes.
952 )))
953 |(((
954 (% class="TableParagraph" %)
955 getOnyxTestOutcome("84692289655276","SCORE") >= 10
956 )))|(((
957 (% class="TableParagraph" %)
958 Returns TRUE if the user has reached at least 10 points.
959 )))
960 |(((
961 (% class="TableParagraph" %)
962 getOnyxTestOutcomeZK("84389429397045","PASS") ="true"
963 )))|(((
964 (% class="TableParagraph" %)
965 Returns TRUE if the user has passed the test.
966 )))
967 |(((
968 (% class="TableParagraph" %)
969 getMark("84692289655276") > 4
970 )))|(((
971 (% class="TableParagraph" %)
972 Returns TRUE if the user's mark for the specified course element is better than 4.
973 )))
974 |(% colspan="1" %)(% colspan="1" %)
975 (((
976 getProgress("69742969114730")>=100
977 )))|(% colspan="1" %)(% colspan="1" %)
978 (((
979 Returns TRUE if the user has completed the specified course element (course progress).
980 )))
981
982 {{note title="Attention!"}}
983 Please note that the above-mentioned course element IDs are just examples. When you create a course, you need to reference the IDs of your own courses.
984 {{/note}}
985 {{/expand}}
986 {{/layout-cell}}
987 {{/layout-section}}
988
989 {{layout-section ac:type="single"}}
990 {{layout-cell}}
991 **Expert syntax**
992
993 {{expand title="Overview of the available expert syntax ..."}}
994 (% class="wrapped" %)
995 |=(((
996 Type
997 )))|=(((
998 Syntax
999 )))|=(((
1000 Description
1001 )))
1002 |(% rowspan="2" %)(% rowspan="2" %)
1003 (((
1004 (% class="TableParagraph" %)
1005 **Constants**
1006 )))|(((
1007 (% class="TableParagraph" %)
1008 //TRUE //or //1//
1009 )))|(((
1010 (% class="TableParagraph" %)
1011 True
1012 )))
1013 |(((
1014 (% class="TableParagraph" %)
1015 //FALSE //or //0//
1016 )))|(((
1017 (% class="TableParagraph" %)
1018 False
1019 )))
1020 |(((
1021 (% class="TableParagraph" %)
1022 **Variable**
1023 )))|(((
1024 (% class="TableParagraph" %)
1025 //now//
1026 )))|(((
1027 (% class="TableParagraph" %)
1028 Current server system time
1029 )))
1030 |(% rowspan="37" %)(% rowspan="37" %)
1031 (((
1032 (% class="TableParagraph" %)
1033 **Functions**
1034
1035
1036 \\\\\\\\
1037
1038 (% class="TableParagraph" %)
1039 \\
1040
1041 (% class="TableParagraph" %)
1042 \\
1043
1044 (% class="TableParagraph" %)
1045 \\
1046
1047
1048 \\\\\\
1049
1050 (% class="TableParagraph" %)
1051 \\
1052
1053 (% class="TableParagraph" %)
1054 \\
1055
1056 (% class="TableParagraph" %)
1057 \\
1058
1059 (% class="TableParagraph" %)
1060 \\
1061
1062 (% class="TableParagraph" %)
1063 \\
1064
1065 (% class="TableParagraph" %)
1066 \\
1067
1068
1069 \\\\\\\\
1070
1071 (% class="TableParagraph" %)
1072 \\
1073
1074 (% class="TableParagraph" %)
1075 \\
1076
1077 (% class="TableParagraph" %)
1078 \\
1079
1080 (% class="TableParagraph" %)
1081 \\
1082
1083 (% class="TableParagraph" %)
1084 \\
1085
1086 (% class="TableParagraph" %)
1087 \\
1088
1089 (% class="TableParagraph" %)
1090 \\
1091
1092 (% class="TableParagraph" %)
1093 \\
1094
1095 (% class="TableParagraph" %)
1096 \\
1097
1098 (% class="TableParagraph" %)
1099 \\
1100
1101
1102 \\\\\\\\\\
1103
1104 (% class="TableParagraph" %)
1105 \\
1106
1107 (% class="TableParagraph" %)
1108 \\
1109
1110 (% class="TableParagraph" %)
1111 \\
1112
1113 (% class="TableParagraph" %)
1114 \\
1115
1116 (% class="TableParagraph" %)
1117 \\
1118
1119 (% class="TableParagraph" %)
1120 \\
1121
1122 (% class="TableParagraph" %)
1123 \\
1124
1125 (% class="TableParagraph" %)
1126 \\
1127
1128 (% class="TableParagraph" %)
1129 \\
1130
1131 (% class="TableParagraph" %)
1132 \\
1133
1134 (% class="TableParagraph" %)
1135 \\
1136
1137 (% class="TableParagraph" %)
1138 \\
1139
1140 (% class="TableParagraph" %)
1141 \\
1142
1143 (% class="TableParagraph" %)
1144 \\
1145
1146 (% class="TableParagraph" %)
1147 \\
1148
1149
1150 \\\\\\\\
1151
1152 (% class="TableParagraph" %)
1153 \\
1154
1155 (% class="TableParagraph" %)
1156 \\
1157
1158 (% class="TableParagraph" %)
1159 \\
1160
1161 (% class="TableParagraph" %)
1162 \\
1163
1164 (% class="TableParagraph" %)
1165 \\
1166
1167 (% class="TableParagraph" %)
1168 \\
1169
1170 (% class="TableParagraph" %)
1171 \\
1172
1173 (% class="TableParagraph" %)
1174 \\
1175
1176 (% class="TableParagraph" %)
1177 \\
1178
1179 (% class="TableParagraph" %)
1180 \\
1181
1182 (% class="TableParagraph" %)
1183 \\
1184
1185 (% class="TableParagraph" %)
1186 \\
1187
1188 (% class="TableParagraph" %)
1189 \\
1190
1191 (% class="TableParagraph" %)
1192 \\
1193
1194 (% class="TableParagraph" %)
1195 \\
1196
1197 (% class="TableParagraph" %)
1198 \\
1199
1200 (% class="TableParagraph" %)
1201 \\
1202
1203 (% class="TableParagraph" %)
1204 \\
1205
1206 (% class="TableParagraph" %)
1207 \\
1208
1209
1210 \\\\
1211
1212 (% class="TableParagraph" %)
1213 \\
1214
1215 (% class="TableParagraph" %)
1216 \\
1217
1218 (% class="TableParagraph" %)
1219 \\
1220
1221 (% class="TableParagraph" %)
1222 \\
1223
1224 (% class="TableParagraph" %)
1225 \\
1226
1227 (% class="TableParagraph" %)
1228 \\
1229
1230 (% class="TableParagraph" %)
1231 \\
1232
1233 (% class="TableParagraph" %)
1234 \\
1235
1236 (% class="TableParagraph" %)
1237 \\
1238
1239 (% class="TableParagraph" %)
1240 \\
1241
1242 (% class="TableParagraph" %)
1243 \\
1244
1245 (% class="TableParagraph" %)
1246 \\
1247
1248 (% class="TableParagraph" %)
1249 \\
1250
1251 (% class="TableParagraph" %)
1252 \\
1253
1254 (% class="TableParagraph" %)
1255 \\
1256
1257 (% class="TableParagraph" %)
1258 \\
1259
1260 (% class="TableParagraph" %)
1261 \\
1262
1263 (% class="TableParagraph" %)
1264 \\
1265
1266 (% class="TableParagraph" %)
1267 \\
1268
1269 (% class="TableParagraph" %)
1270 \\
1271
1272 (% class="TableParagraph" %)
1273 \\
1274
1275
1276 \\\\
1277
1278 (% class="TableParagraph" %)
1279 \\
1280
1281 (% class="TableParagraph" %)
1282 \\
1283
1284 (% class="TableParagraph" %)
1285 \\
1286
1287 (% class="TableParagraph" %)
1288 \\
1289
1290 (% class="TableParagraph" %)
1291 \\
1292
1293 (% class="TableParagraph" %)
1294 \\
1295
1296 (% class="TableParagraph" %)
1297 \\
1298
1299 (% class="TableParagraph" %)
1300 \\
1301
1302 (% class="TableParagraph" %)
1303 \\
1304
1305 (% class="TableParagraph" %)
1306 \\
1307
1308 (% class="TableParagraph" %)
1309 \\
1310
1311 (% class="TableParagraph" %)
1312 \\
1313
1314 (% class="TableParagraph" %)
1315 \\
1316
1317 (% class="TableParagraph" %)
1318 \\
1319
1320 (% class="TableParagraph" %)
1321 \\
1322
1323 (% class="TableParagraph" %)
1324 \\
1325
1326 (% class="TableParagraph" %)
1327 \\
1328
1329 (% class="TableParagraph" %)
1330 \\
1331
1332 (% class="TableParagraph" %)
1333 \\
1334
1335 (% class="TableParagraph" %)
1336 \\
1337
1338 (% class="TableParagraph" %)
1339 \\
1340
1341 (% class="TableParagraph" %)
1342 \\
1343
1344 (% class="TableParagraph" %)
1345 \\
1346
1347
1348 \\\\\\\\
1349
1350 (% class="TableParagraph" %)
1351 \\
1352
1353 (% class="TableParagraph" %)
1354 \\
1355
1356 (% class="TableParagraph" %)
1357 \\
1358
1359 (% class="TableParagraph" %)
1360 \\
1361
1362 (% class="TableParagraph" %)
1363 \\
1364
1365 (% class="TableParagraph" %)
1366 \\
1367
1368 (% class="TableParagraph" %)
1369 \\
1370
1371 (% class="TableParagraph" %)
1372 \\
1373
1374 (% class="TableParagraph" %)
1375 \\
1376
1377 (% class="TableParagraph" %)
1378 \\
1379
1380 (% class="TableParagraph" %)
1381 \\
1382
1383 (% class="TableParagraph" %)
1384 \\
1385
1386 (% class="TableParagraph" %)
1387 \\
1388
1389 (% class="TableParagraph" %)
1390 \\
1391
1392 (% class="TableParagraph" %)
1393 \\
1394
1395 (% class="TableParagraph" %)
1396 \\
1397
1398 (% class="TableParagraph" %)
1399 \\
1400
1401 (% class="TableParagraph" %)
1402 \\
1403
1404 (% class="TableParagraph" %)
1405 \\
1406
1407 (% class="TableParagraph" %)
1408 \\
1409
1410 (% class="TableParagraph" %)
1411 \\
1412
1413 (% class="TableParagraph" %)
1414 \\
1415
1416 (% class="TableParagraph" %)
1417 \\
1418
1419 (% class="TableParagraph" %)
1420 \\
1421
1422 (% class="TableParagraph" %)
1423 \\
1424
1425 (% class="TableParagraph" %)
1426 \\
1427
1428 (% class="TableParagraph" %)
1429 \\
1430
1431
1432 \\\\\\\\
1433
1434 (% class="TableParagraph" %)
1435 \\
1436
1437 (% class="TableParagraph" %)
1438 \\
1439
1440 (% class="TableParagraph" %)
1441 \\
1442
1443 (% class="TableParagraph" %)
1444 \\
1445
1446 (% class="TableParagraph" %)
1447 \\
1448
1449 (% class="TableParagraph" %)
1450 \\
1451
1452 (% class="TableParagraph" %)
1453 \\
1454
1455 (% class="TableParagraph" %)
1456 \\
1457
1458 (% class="TableParagraph" %)
1459 \\
1460
1461 (% class="TableParagraph" %)
1462 \\
1463
1464 (% class="TableParagraph" %)
1465 \\
1466
1467 (% class="TableParagraph" %)
1468 \\
1469
1470 (% class="TableParagraph" %)
1471 \\
1472
1473 (% class="TableParagraph" %)
1474 \\
1475
1476 (% class="TableParagraph" %)
1477 \\
1478
1479 (% class="TableParagraph" %)
1480 \\
1481
1482 (% class="TableParagraph" %)
1483 \\
1484
1485 (% class="TableParagraph" %)
1486 \\
1487
1488 (% class="TableParagraph" %)
1489 \\
1490
1491 (% class="TableParagraph" %)
1492 \\
1493
1494 (% class="TableParagraph" %)
1495 \\
1496
1497 (% class="TableParagraph" %)
1498 \\
1499
1500 (% class="TableParagraph" %)
1501 \\
1502
1503 (% class="TableParagraph" %)
1504 \\
1505
1506 (% class="TableParagraph" %)
1507 \\
1508
1509 (% class="TableParagraph" %)
1510 \\
1511
1512 (% class="TableParagraph" %)
1513 \\
1514
1515 \\
1516
1517 (% class="TableParagraph" %)
1518 \\
1519
1520 (% class="TableParagraph" %)
1521 \\
1522
1523 (% class="TableParagraph" %)
1524 \\
1525
1526
1527 \\\\\\\\
1528 )))|(((
1529 (% class="TableParagraph" %)
1530 //date("[date]")//
1531 )))|(((
1532 (% class="TableParagraph" %)
1533 Query date
1534 )))
1535 |(% colspan="1" %)(% colspan="1" %)
1536 (((
1537 (% class="TableParagraph" %)
1538 //inLearningGroup("//[string]//")//
1539 )))|(% colspan="1" %)(% colspan="1" %)
1540 (((
1541 (% class="TableParagraph" %)
1542 Returns TRUE for all members of the learning group with the title [string] of the current course.
1543 )))
1544 |(% colspan="1" %)(% colspan="1" %)
1545 (((
1546 (% class="TableParagraph" %)
1547 //inLearningGroup("//[string1]//","//[string2]//")//
1548 )))|(% colspan="1" %)(% colspan="1" %)
1549 (((
1550 (% class="TableParagraph" %)
1551 Returns TRUE for all members of the specified learning group [string1] of the course with the specified course ID=[string2].
1552 )))
1553 |(% colspan="1" %)(% colspan="1" %)
1554 (((
1555 (% class="TableParagraph" %)
1556 //inLearningGroupWaitingList("//[string]//")//
1557 )))|(% colspan="1" %)(% colspan="1" %)
1558 (((
1559 (% class="TableParagraph" %)
1560 Returns TRUE for all users on the waiting list of the learning group [string] of the current course.
1561 )))
1562 |(% colspan="1" %)(% colspan="1" %)
1563 (((
1564 (% class="TableParagraph" %)
1565 //inLearningGroupWaitingList("//[string1]//","//[string2]//"// //)//
1566 )))|(% colspan="1" %)(% colspan="1" %)
1567 (((
1568 (% class="TableParagraph" %)
1569 Returns TRUE for all users on the waiting list of the learning group [string1] of the course with the specified course ID=[string2].
1570 )))
1571 |(% colspan="1" %)(% colspan="1" %)
1572 (((
1573 (% class="TableParagraph" %)
1574 //inRightGroup("//[string]//")//
1575 )))|(% colspan="1" %)(% colspan="1" %)
1576 (((
1577 (% class="TableParagraph" %)
1578 Returns TRUE for all members of the right group [string].
1579 )))
1580 |(% colspan="1" %)(% colspan="1" %)
1581 (((
1582 (% class="TableParagraph" %)
1583 //isLearningGroupFull("//[string]//")//
1584 )))|(% colspan="1" %)(% colspan="1" %)
1585 (((
1586 (% class="TableParagraph" %)
1587 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group in the current course.
1588 )))
1589 |(% colspan="1" %)(% colspan="1" %)
1590 (((
1591 (% class="TableParagraph" %)
1592 //isLearningGroupFull("//[string1]//","//[string2]//")//
1593 )))|(% colspan="1" %)(% colspan="1" %)
1594 (((
1595 (% class="TableParagraph" %)
1596 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group=[string1] of the course with the course ID=[string2].
1597 )))
1598 |(% colspan="1" %)(% colspan="1" %)
1599 (((
1600 (% class="TableParagraph" %)
1601 //isUser("//[string]//")//
1602 )))|(% colspan="1" %)(% colspan="1" %)
1603 (((
1604 (% class="TableParagraph" %)
1605 Returns TRUE for the user with the user name [string].
1606 )))
1607 |(% colspan="1" %)(% colspan="1" %)
1608 (((
1609 (% class="TableParagraph" %)
1610 //inLearningArea("//[string]//")//
1611 )))|(% colspan="1" %)(% colspan="1" %)
1612 (((
1613 (% class="TableParagraph" %)
1614 Returns TRUE for all members of the groups in the learning area [string] of the current course.
1615 )))
1616 |(% colspan="1" %)(% colspan="1" %)
1617 (((
1618 (% class="TableParagraph" %)
1619 //inLearningArea("//[string1]//","//[string2]//")//
1620 )))|(% colspan="1" %)(% colspan="1" %)
1621 (((
1622 (% class="TableParagraph" %)
1623 Returns TRUE for all members of the groups in the specified learning area [string1] of the course with the specified course ID=[string2].
1624 )))
1625 |(% colspan="1" %)(% colspan="1" %)
1626 (((
1627 (% class="TableParagraph" %)
1628 //getNumberOfEnrollments("//[string1]*//")//
1629 )))|(% colspan="1" %)(% colspan="1" %)
1630 (((
1631 (% class="TableParagraph" %)
1632 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
1633 )))
1634 |(% colspan="1" %)(% colspan="1" %)
1635 (((
1636 (% class="TableParagraph" %)
1637 //isGlobalAuthor()//
1638 )))|(% colspan="1" %)(% colspan="1" %)
1639 (((
1640 (% class="TableParagraph" %)
1641 Returns TRUE for all members of the OPAL author group.
1642 )))
1643 |(% colspan="1" %)(% colspan="1" %)
1644 (((
1645 (% class="TableParagraph" %)
1646 //isCourseAdministrator()//
1647 )))|(% colspan="1" %)(% colspan="1" %)
1648 (((
1649 (% class="TableParagraph" %)
1650 Returns TRUE for all owners of your course (learning resource).
1651 )))
1652 |(% colspan="1" %)(% colspan="1" %)
1653 (((
1654 (% class="TableParagraph" %)
1655 //isCourseCoach()//
1656 )))|(% colspan="1" %)(% colspan="1" %)
1657 (((
1658 (% class="TableParagraph" %)
1659 Returns TRUE for all users who supervise a learning group.
1660 )))
1661 |(% colspan="1" %)(% colspan="1" %)
1662 (((
1663 (% class="TableParagraph" %)
1664 //isGuest()//
1665 )))|(% colspan="1" %)(% colspan="1" %)
1666 (((
1667 (% class="TableParagraph" %)
1668 Returns TRUE for all users who visit OPAL as guests.
1669 )))
1670 |(% colspan="1" %)(% colspan="1" %)
1671 (((
1672 (% class="TableParagraph" %)
1673 //isExternalUser()//
1674 )))|(% colspan="1" %)(% colspan="1" %)
1675 (((
1676 (% class="TableParagraph" %)
1677 Returns TRUE for everyone who uses OPAL as an external user.
1678 )))
1679 |(% colspan="1" %)(% colspan="1" %)
1680 (((
1681 (% class="TableParagraph" %)
1682 //hasAttribute("//[AttrName]//","//[string]//")//
1683 )))|(% colspan="1" %)(% colspan="1" %)
1684 (((
1685 (% class="TableParagraph" %)
1686 Returns TRUE if [string] matches the value of the AAI attribute [AttrName] of the respective user.
1687 )))
1688 |(% colspan="1" %)(% colspan="1" %)
1689 (((
1690 (% class="TableParagraph" %)
1691 //isInAttribute("//[AttrName]//","//[substring]//")//
1692 )))|(% colspan="1" %)(% colspan="1" %)
1693 (((
1694 (% class="TableParagraph" %)
1695 Returns TRUE if [substring] matches a portion of the value of the AAI attribute [AttrName] of the respective user.
1696 )))
1697 |(% colspan="1" %)(% colspan="1" %)
1698 (((
1699 (% class="TableParagraph" %)
1700 //getUserProperty("//[string]//")//
1701 )))|(% colspan="1" %)(% colspan="1" %)
1702 (((
1703 (% class="TableParagraph" %)
1704 Returns the specified user property of the executing user.
1705 )))
1706 |(% colspan="1" %)(% colspan="1" %)
1707 (((
1708 (% class="TableParagraph" %)
1709 //getPassed("//[integer]//")//
1710 )))|(% colspan="1" %)(% colspan="1" %)
1711 (((
1712 (% class="TableParagraph" %)
1713 Returns the Boolean TRUE (=passed) or FALSE (=not passed) from the course element with the specified ID.
1714 )))
1715 |(% colspan="1" %)(% colspan="1" %)
1716 (((
1717 (% class="TableParagraph" %)
1718 //getScore("//[integer]//")//
1719 )))|(% colspan="1" %)(% colspan="1" %)
1720 (((
1721 (% class="TableParagraph" %)
1722 Returns the number of points from the course element with the specified ID.
1723 )))
1724 |(% colspan="1" %)(% colspan="1" %)
1725 (((
1726 (% class="TableParagraph" %)
1727 //getAttempts("//[integer]//")//
1728 )))|(% colspan="1" %)(% colspan="1" %)
1729 (((
1730 (% class="TableParagraph" %)
1731 Returns the number of completed attempts from the course element with the specified ID. Can be applied to course elements of the type Test, Self-test, Survey (possible return values 0 or 1), and Task (return value = number of submitted files).
1732 )))
1733 |(% colspan="1" %)(% colspan="1" %)
1734 (((
1735 (% class="TableParagraph" %)
1736 //getInitialEnrollmentDate("//[integer]//")//
1737 )))|(% colspan="1" %)(% colspan="1" %)
1738 (((
1739 (% class="TableParagraph" %)
1740 Returns the date of the respective course participant's first-time enrolment from the Enrolment course element with the specified ID.
1741 )))
1742 |(% colspan="1" %)(% colspan="1" %)
1743 (((
1744 (% class="TableParagraph" %)
1745 //getRecentEnrollmentDate("//[integer]//")//
1746 )))|(% colspan="1" %)(% colspan="1" %)
1747 (((
1748 (% class="TableParagraph" %)
1749 Returns the date of the respective course participant's last enrolment from the Enrolment course element with the specified ID.
1750 )))
1751 |(((
1752 (% class="TableParagraph" %)
1753 //getInitialCourseLaunchDate()//
1754 )))|(((
1755 (% class="TableParagraph" %)
1756 Returns the date of the first-time course visit of the respective course participant.
1757 )))
1758 |(((
1759 (% class="TableParagraph" %)
1760 //getRecentCourseLaunchDate()//
1761 )))|(((
1762 (% class="TableParagraph" %)
1763 Returns the date of the last course visit of the respective course participant.
1764 )))
1765 |(% colspan="1" %)(% colspan="1" %)
1766 (((
1767 (% class="TableParagraph" %)
1768 //getPassedWithCourseId("//[integer-1]//","//[integer- 2]//")//
1769 )))|(% colspan="1" %)(% colspan="1" %)
1770 (((
1771 (% class="TableParagraph" %)
1772 Returns the Boolean TRUE (=passed) or FALSE (=not passed) from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
1773 )))
1774 |(% colspan="1" %)(% colspan="1" %)
1775 (((
1776 (% class="TableParagraph" %)
1777 //getScoreWithCourseId("//[integer-1]//","//[integer-2]//")//
1778 )))|(% colspan="1" %)(% colspan="1" %)
1779 (((
1780 (% class="TableParagraph" %)
1781 Returns the number of points from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
1782 )))
1783 |(% colspan="1" %)(% colspan="1" %)
1784 (((
1785 //getMarkWithCourseId(" //[integer-1]//","//[integer-2]//")//
1786 )))|(% colspan="1" %)(% colspan="1" %)
1787 (((
1788 Returns the mark from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
1789 )))
1790 |(((
1791 (% class="TableParagraph" %)
1792 //hasEvaluationCompleted("//KB-ID//")//
1793 )))|(((
1794 (% class="TableParagraph" %)
1795 Returns TRUE for all users who have successfully completed the specified course element.
1796 )))
1797 |(((
1798 (% class="TableParagraph" %)
1799 //getNumberOfEnrollments("//[string1]*//")//
1800 )))|(((
1801 (% class="TableParagraph" %)
1802 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
1803 )))
1804 |(((
1805 (% class="TableParagraph" %)
1806 //getOnyxTestOutcome("//[string1]//","//[string2]//")//
1807 )))|(((
1808 (% class="TableParagraph" %)
1809 Returns from the ONYX test course element with the specified ID (string1) and the specified output variable (string2) the value of this variable. The return value will be a number.
1810 )))
1811 |(% colspan="1" %)(% colspan="1" %)
1812 (((
1813 (% class="TableParagraph" %)
1814 //getOnyxTestOutcomeZK("//[string1]//","//[string2]//")//
1815 )))|(% colspan="1" %)(% colspan="1" %)
1816 (((
1817 (% class="TableParagraph" %)
1818 Returns from the ONYX test course element with the specified ID (string1) and the specified output variable (string2) the value of this variable. The return value will be a string.
1819 )))
1820 |(% colspan="1" %)(% colspan="1" %)
1821 (((
1822 (% class="TableParagraph" %)
1823 //getProgress(//"[integer]"//)//
1824 )))|(% colspan="1" %)(% colspan="1" %)
1825 (((
1826 (% class="TableParagraph" %)
1827 Returns the progress from the course element with the specified ID as a numerical value between 0 and 100 (percent).
1828 )))
1829 |(% colspan="1" %)(% colspan="1" %)
1830 (((
1831 (% class="TableParagraph" %)
1832 //isPasswordConfirmed("//[string]")
1833 )))|(% colspan="1" %)(% colspan="1" %)
1834 (((
1835 (% class="TableParagraph" %)
1836 Returns TRUE after entering the correct password (string1).
1837
1838 (% class="TableParagraph" %)
1839 Can only be used with course elements that allow a password restriction even in simple mode.
1840 )))
1841 |(% colspan="1" %)(% colspan="1" %)
1842 (((
1843 (% class="TableParagraph" %)
1844 //comesFrom("//[string]//")//
1845 )))|(% colspan="1" %)(% colspan="1" %)
1846 (((
1847 (% class="TableParagraph" %)
1848 Returns TRUE if the user has a linked account to OLAT with the specified system ID.
1849 )))
1850 |(% rowspan="4" %)(% rowspan="4" %)
1851 (((
1852 (% class="TableParagraph" %)
1853 **Units**
1854
1855
1856 \\\\
1857 )))|(% colspan="1" %)(% colspan="1" %)
1858 (((
1859 (% class="TableParagraph" %)
1860 //min//
1861 )))|(% colspan="1" %)(% colspan="1" %)
1862 (((
1863 (% class="TableParagraph" %)
1864 Minutes
1865 )))
1866 |(% colspan="1" %)(% colspan="1" %)
1867 (((
1868 (% class="TableParagraph" %)
1869 //h//
1870 )))|(% colspan="1" %)(% colspan="1" %)
1871 (((
1872 (% class="TableParagraph" %)
1873 Hours//
1874 //
1875 )))
1876 |(% colspan="1" %)(% colspan="1" %)
1877 (((
1878 (% class="TableParagraph" %)
1879 //w//
1880 )))|(% colspan="1" %)(% colspan="1" %)
1881 (((
1882 (% class="TableParagraph" %)
1883 Weeks
1884 )))
1885 |(% colspan="1" %)(% colspan="1" %)
1886 (((
1887 (% class="TableParagraph" %)
1888 //m//
1889 )))|(% colspan="1" %)(% colspan="1" %)
1890 (((
1891 (% class="TableParagraph" %)
1892 Months
1893 )))
1894 |(% rowspan="9" %)(% rowspan="9" %)
1895 (((
1896 (% class="TableParagraph" %)
1897 **Operators**
1898
1899
1900 \\\\\\\\\\\\\\
1901 )))|(% colspan="1" %)(% colspan="1" %)
1902 (((
1903 (% class="TableParagraph" %)
1904 ~=
1905 )))|(% colspan="1" %)(% colspan="1" %)
1906 (((
1907 (% class="TableParagraph" %)
1908 Equal to
1909 )))
1910 |(((
1911 (% class="TableParagraph" %)
1912 ~>
1913 )))|(((
1914 (% class="TableParagraph" %)
1915 Greater than
1916 )))
1917 |(((
1918 (% class="TableParagraph" %)
1919 <
1920 )))|(((
1921 (% class="TableParagraph" %)
1922 Less than
1923 )))
1924 |(((
1925 (% class="TableParagraph" %)
1926 ~>=
1927 )))|(((
1928 (% class="TableParagraph" %)
1929 Greater than or equal to
1930 )))
1931 |(((
1932 (% class="TableParagraph" %)
1933 <=
1934 )))|(((
1935 (% class="TableParagraph" %)
1936 Less than or equal to
1937 )))
1938 |(((
1939 (% class="TableParagraph" %)
1940 *
1941 )))|(((
1942 (% class="TableParagraph" %)
1943 Multiplication
1944 )))
1945 |(% colspan="1" %)(% colspan="1" %)
1946 (((
1947 (% class="TableParagraph" %)
1948 /
1949 )))|(% colspan="1" %)(% colspan="1" %)
1950 (((
1951 (% class="TableParagraph" %)
1952 Division
1953 )))
1954 |(% colspan="1" %)(% colspan="1" %)
1955 (((
1956 (% class="TableParagraph" %)
1957 +
1958 )))|(% colspan="1" %)(% colspan="1" %)
1959 (((
1960 (% class="TableParagraph" %)
1961 Addition
1962 )))
1963 |(% colspan="1" %)(% colspan="1" %)
1964 (((
1965 (% class="TableParagraph" %)
1966 -
1967 )))|(% colspan="1" %)(% colspan="1" %)
1968 (((
1969 (% class="TableParagraph" %)
1970 Subtraction
1971 )))
1972 |(% rowspan="3" %)(% rowspan="3" %)
1973 (((
1974 (% class="TableParagraph" %)
1975 **Booleans**
1976
1977
1978 \\
1979 )))|(((
1980 (% class="TableParagraph" %)
1981 &
1982 )))|(((
1983 (% class="TableParagraph" %)
1984 Logical AND
1985 )))
1986 |(((
1987 (% class="TableParagraph" %)
1988 ~|
1989 )))|(((
1990 (% class="TableParagraph" %)
1991 Logical OR
1992 )))
1993 |(((
1994 (% class="TableParagraph" %)
1995 !
1996 )))|(((
1997 (% class="TableParagraph" %)
1998 Logical NOT
1999 )))
2000 {{/expand}}
2001 {{/layout-cell}}
2002 {{/layout-section}}
2003 {{/layout}}