Wiki-Quellcode von Expert Mode

Version 182.1 von Carina Enke am 27.11.2019

Zeige letzte Bearbeiter
1 {{sv-translation language="de"}}
2 {{layout}}
3 {{layout-section ac:type="single"}}
4 {{layout-cell}}
5 \\
6 {{/layout-cell}}
7 {{/layout-section}}
8
9 {{layout-section ac:type="single"}}
10 {{layout-cell}}
11 {{expand title="Expertensyntax anzeigen"}}
12 (% class="wrapped" %)
13 |=(((
14 Typ
15 )))|=(((
16 Syntax
17 )))|=(((
18 Bedeutung
19 )))
20 |(% rowspan="2" %)(% rowspan="2" %)
21 (((
22 **Konstanten**
23 )))|(((
24 //TRUE// oder //1//
25 )))|(((
26 Wahr
27 )))
28 |(((
29 //FALSE// oder //0//
30 )))|(((
31 Falsch
32 )))
33 |(% colspan="1" %)(% colspan="1" %)
34 (((
35 **Variable**
36 )))|(% colspan="1" %)(% colspan="1" %)
37 (((
38 //now//
39 )))|(% colspan="1" %)(% colspan="1" %)
40 (((
41 Momentane Server-Systemzeit
42 )))
43 |(% rowspan="37" %)(% rowspan="37" %)
44 (((
45 **Funktionen**
46 )))|(% colspan="1" %)(% colspan="1" %)
47 (((
48 //date("//[date]//")//
49 )))|(% colspan="1" %)(% colspan="1" %)
50 (((
51 Datum abfragen
52 )))
53 |(% colspan="1" %)(% colspan="1" %)
54 (((
55 //inLearningGroup("//[string]//")//
56 )))|(% colspan="1" %)(% colspan="1" %)
57 (((
58 Gibt TRUE für alle Mitglieder der Lerngruppe mit dem Titel [string] des aktuellen Kurses zurück.
59 )))
60 |(% colspan="1" %)(% colspan="1" %)
61 (((
62 //inLearningGroup("//[string1]//","//[string2]//")//
63 )))|(% colspan="1" %)(% colspan="1" %)
64 (((
65 Gibt TRUE für alle Mitglieder der angegebenen Lerngruppe [string1] des Kurses mit der angegebenen Kurs-ID=[string2] zurück.
66 )))
67 |(% colspan="1" %)(% colspan="1" %)
68 (((
69 //inLearningGroupWaitingList("//[string]//")//
70 )))|(% colspan="1" %)(% colspan="1" %)
71 (((
72 Gibt TRUE für alle Benutzer in der Warteliste der Lerngruppe [string] des aktuellen Kurses zurück.
73 )))
74 |(% colspan="1" %)(% colspan="1" %)
75 (((
76 //inLearningGroupWaitingList("//[string1]//","//[string2]//")//
77 )))|(% colspan="1" %)(% colspan="1" %)
78 (((
79 Gibt TRUE für alle Benutzer in der Warteliste der Lerngruppe [string1] des Kurses mit der angegebenen Kurs-ID=[string2] zurück.
80 )))
81 |(% colspan="1" %)(% colspan="1" %)
82 (((
83 //inRightGroup("//[string]//")//
84 )))|(% colspan="1" %)(% colspan="1" %)
85 (((
86 Gibt TRUE für alle Mitglieder der Rechtegruppe [string] zurück.
87 )))
88 |(% colspan="1" %)(% colspan="1" %)
89 (((
90 //isLearningGroupFull("//[string]//")//
91 )))|(% colspan="1" %)(% colspan="1" %)
92 (((
93 Gibt für die angegebene Lerngruppe im aktuellen Kurs den Boolean TRUE (=voll) oder FALSE (=nicht voll) zurück.
94 )))
95 |(% colspan="1" %)(% colspan="1" %)
96 (((
97 //isLearningGroupFull("//[string1]//","//[string2]//")//
98 )))|(% colspan="1" %)(% colspan="1" %)
99 (((
100 Gibt für die angegebene Lerngruppe=[string1] des Kurses mit Kurs-ID=[string2] den Boolean TRUE (=voll) oder FALSE (=nicht voll) zurück.
101 )))
102 |(% colspan="1" %)(% colspan="1" %)
103 (((
104 //isUser("//[string]//")//
105 )))|(% colspan="1" %)(% colspan="1" %)
106 (((
107 Gibt TRUE für den Benutzer mit dem Benutzernamen [string] zurück.
108 )))
109 |(% colspan="1" %)(% colspan="1" %)
110 (((
111 //inLearningArea("//[string]//")//
112 )))|(% colspan="1" %)(% colspan="1" %)
113 (((
114 Gibt TRUE für alle Mitglieder der Gruppen im Lernbereich [string] des aktuellen Kurses zurück.
115 )))
116 |(% colspan="1" %)(% colspan="1" %)
117 (((
118 //inLearningArea("//[string1]//","//[string2]//")//
119 )))|(% colspan="1" %)(% colspan="1" %)
120 (((
121 Gibt TRUE für alle Mitglieder der Gruppen im angegebenen Lernbereich [string1] des Kurses mit der angegebenen Kurs-ID=[string2] zurück.
122 )))
123 |(% colspan="1" %)(% colspan="1" %)
124 (((
125 //getNumberOfEnrollments("//[string1]*//")//
126 )))|(% colspan="1" %)(% colspan="1" %)
127 (((
128 Gibt TRUE, wenn die konfigurierte Anzahl der Lerngruppenmitgliedschaften im Lernbereich (string1) erreicht ist.
129 )))
130 |(% colspan="1" %)(% colspan="1" %)
131 (((
132 //isGlobalAuthor(0)//
133 )))|(% colspan="1" %)(% colspan="1" %)
134 (((
135 Gibt TRUE für alle Mitglieder der OPAL-Autorengruppe zurück.
136 )))
137 |(% colspan="1" %)(% colspan="1" %)
138 (((
139 //isCourseAdministrator(0)//
140 )))|(% colspan="1" %)(% colspan="1" %)
141 (((
142 Gibt TRUE für alle Besitzer Ihres Kurses (Lernressource) zurück.
143 )))
144 |(% colspan="1" %)(% colspan="1" %)
145 (((
146 //isCourseCoach(0)//
147 )))|(% colspan="1" %)(% colspan="1" %)
148 (((
149 Gibt TRUE für alle Benutzer, die eine Lerngruppe betreuen zurück.
150 )))
151 |(% colspan="1" %)(% colspan="1" %)
152 (((
153 //isGuest(0)//
154 )))|(% colspan="1" %)(% colspan="1" %)
155 (((
156 Gibt TRUE für alle Benutzer, die OPAL als Gäste besuchen zurück.
157 )))
158 |(% colspan="1" %)(% colspan="1" %)
159 (((
160 //isExternalUser(0)//
161 )))|(% colspan="1" %)(% colspan="1" %)
162 (((
163 Gibt TRUE für alle, die OPAL als externe Benutzer verwenden zurück.
164 )))
165 |(% colspan="1" %)(% colspan="1" %)
166 (((
167 //hasAttribute("//[AttrName]//","//[string]//")//
168 )))|(% colspan="1" %)(% colspan="1" %)
169 (((
170 Gibt TRUE, wenn [string] dem Wert des AAI-Attributes [AttrName] des jeweiligen Benutzers entspricht.
171 )))
172 |(% colspan="1" %)(% colspan="1" %)
173 (((
174 //isInAttribute("//[AttrName]//","//[substring]//")//
175 )))|(% colspan="1" %)(% colspan="1" %)
176 (((
177 Gibt TRUE, wenn [substring] einem Teil des Wertes des AAI-Attributs [AttrName] des jeweiligen Benutzers entspricht.
178 )))
179 |(% colspan="1" %)(% colspan="1" %)
180 (((
181 //getUserProperty("//[string]//")//
182 )))|(% colspan="1" %)(% colspan="1" %)
183 (((
184 Liefert die angegebene Benutzer-Eigenschaft des ausführenden Nutzers zurück.
185 )))
186 |(% colspan="1" %)(% colspan="1" %)
187 (((
188 //getPassed("//[integer]//")//
189 )))|(% colspan="1" %)(% colspan="1" %)
190 (((
191 Gibt vom Kursbaustein mit spezifizierter ID den Boolean TRUE (=Bestanden) oder FALSE (=Nicht bestanden) zurück.
192 )))
193 |(% colspan="1" %)(% colspan="1" %)
194 (((
195 //getScore("//[integer]//")//
196 )))|(% colspan="1" %)(% colspan="1" %)
197 (((
198 Gibt vom Kursbaustein mit spezifizierter ID die Anzahl Punkte zurück.
199 )))
200 |(% colspan="1" %)(% colspan="1" %)
201 (((
202 //getAttempts("//[integer]//")//
203 )))|(% colspan="1" %)(% colspan="1" %)
204 (((
205 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) angewendet werden.
206 )))
207 |(% colspan="1" %)(% colspan="1" %)
208 (((
209 //getInitialEnrollmentDate("//[integer]//")//
210 )))|(% colspan="1" %)(% colspan="1" %)
211 (((
212 Gibt vom Kursbaustein //Einschreibung// mit spezifizierter ID das Datum des erstmaligen Einschreibens des betreffenden Kursteilnehmers zurück.
213 )))
214 |(% colspan="1" %)(% colspan="1" %)
215 (((
216 //getRecentEnrollmentDate("//[integer]//")//
217 )))|(% colspan="1" %)(% colspan="1" %)
218 (((
219 Gibt vom Kursbaustein //Einschreibung// mit spezifizierter ID das Datum des letzten Einschreibens des betreffenden Kursteilnehmers zurück.
220 )))
221 |(% colspan="1" %)(% colspan="1" %)
222 (((
223 //getInitialCourseLaunchDate(0)//
224 )))|(% colspan="1" %)(% colspan="1" %)
225 (((
226 Gibt das Datum des erstmaligen Kursbesuchs des betreffenden Kursteilnehmers zurück.
227 )))
228 |(% colspan="1" %)(% colspan="1" %)
229 (((
230 //getRecentCourseLaunchDate(0)//
231 )))|(% colspan="1" %)(% colspan="1" %)
232 (((
233 Gibt das Datum des letzten Kursbesuchs des betreffenden Kursteilnehmers zurück.
234 )))
235 |(% colspan="1" %)(% colspan="1" %)
236 (((
237 //getPassedWithCourseId("//[integer-1]//","//[integer-2]//")//
238 )))|(% colspan="1" %)(% colspan="1" %)
239 (((
240 Gibt vom Kursbaustein mit ID=[integer-2] des Kurses mit ID=[integer-1] den Boolean TRUE (=Bestanden) oder FALSE (=Nicht bestanden) zurück.
241 )))
242 |(% colspan="1" %)(% colspan="1" %)
243 (((
244 //getScoreWithCourseId("//[integer-1]//","//[integer-2]//")//
245 )))|(% colspan="1" %)(% colspan="1" %)
246 (((
247 Gibt vom Kursbaustein mit ID=[integer-2] des Kurses mit ID=[integer-1] die Anzahl Punkte zurück.
248 )))
249 |(% colspan="1" %)(% colspan="1" %)
250 (((
251 //getMarkWithCourseId("//[integer-1]//","//[integer-2]//")//
252 )))|(% colspan="1" %)(% colspan="1" %)
253 (((
254 Gibt vom Kursbaustein mit ID=[integer-2] des Kurses mit ID=[integer-1] die Note zurück.
255 )))
256 |(% colspan="1" %)(% colspan="1" %)
257 (((
258 //hasEvaluationCompleted("//KB-ID//")//
259 )))|(% colspan="1" %)(% colspan="1" %)
260 (((
261 Gibt TRUE für alle Benutzer die den angegebenen Kursbaustein erfolgreich beendeten.
262 )))
263 |(% colspan="1" %)(% colspan="1" %)
264 (((
265 //getNumberOfEnrollments("//[string1]*//")//
266 )))|(% colspan="1" %)(% colspan="1" %)
267 (((
268 Gibt TRUE, wenn die konfigurierte Anzahl der Lerngruppenmitgliedschaften im Lernbereich (string1) erreicht ist.
269 )))
270 |(% colspan="1" %)(% colspan="1" %)
271 (((
272 //getOnyxTestOutcome("//[string1]//","//[string2]//")//
273 )))|(% colspan="1" %)(% colspan="1" %)
274 (((
275 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.
276 )))
277 |(% colspan="1" %)(% colspan="1" %)
278 (((
279 //getOnyxTestOutcomeZK("//[string1]//","//[string2]//")//
280 )))|(% colspan="1" %)(% colspan="1" %)
281 (((
282 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.
283 )))
284 |(% colspan="1" %)(% colspan="1" %)
285 (((
286 //getProgress(//"[integer]"//)//
287 )))|(% colspan="1" %)(% colspan="1" %)
288 (((
289 Gibt vom Kursbaustein mit spezifizierter ID den Fortschritt als numerischen Wert zwischen 0 und 100 (Prozent) zurück.
290 )))
291 |(% colspan="1" %)(% colspan="1" %)
292 (((
293 //isPasswordConfirmed("//[string]")
294 )))|(% colspan="1" %)(% colspan="1" %)
295 (((
296 Gibt TRUE nach Eingabe des korrekten Passwortes (string1) zurück.
297
298 Kann nur bei Kursbausteinen verwendet werden, die auch im einfachen Modus eine Passwortbeschränkung anbieten.
299 )))
300 |(% colspan="1" %)(% colspan="1" %)
301 (((
302 //comesFrom("//[string]//")//
303 )))|(% colspan="1" %)(% colspan="1" %)
304 (((
305 Gibt TRUE zurück wenn der Nutzer ein verlinktes Konto zum OLAT mit der angegebenen System-ID hat.
306 )))
307 |(% rowspan="4" %)(% rowspan="4" %)
308 (((
309 **Einheiten**
310 )))|(% colspan="1" %)(% colspan="1" %)
311 (((
312 //min//
313 )))|(% colspan="1" %)(% colspan="1" %)
314 (((
315 Minuten
316 )))
317 |(% colspan="1" %)(% colspan="1" %)
318 (((
319 //h//
320 )))|(% colspan="1" %)(% colspan="1" %)
321 (((
322 //h//
323 )))
324 |(% colspan="1" %)(% colspan="1" %)
325 (((
326 //w//
327 )))|(% colspan="1" %)(% colspan="1" %)
328 (((
329 Wochen
330 )))
331 |(% colspan="1" %)(% colspan="1" %)
332 (((
333 //m//
334 )))|(% colspan="1" %)(% colspan="1" %)
335 (((
336 Monate
337 )))
338 |(% rowspan="9" %)(% rowspan="9" %)
339 (((
340 **Operatoren**
341 )))|(% colspan="1" %)(% colspan="1" %)
342 (((
343 ~=
344 )))|(% colspan="1" %)(% colspan="1" %)
345 (((
346 gleich
347 )))
348 |(% colspan="1" %)(% colspan="1" %)
349 (((
350 ~>
351 )))|(% colspan="1" %)(% colspan="1" %)
352 (((
353 grösser als
354 )))
355 |(% colspan="1" %)(% colspan="1" %)
356 (((
357 <
358 )))|(% colspan="1" %)(% colspan="1" %)
359 (((
360 kleiner als
361 )))
362 |(% colspan="1" %)(% colspan="1" %)
363 (((
364 ~>=
365 )))|(% colspan="1" %)(% colspan="1" %)
366 (((
367 grösser gleich
368 )))
369 |(% colspan="1" %)(% colspan="1" %)
370 (((
371 <=
372 )))|(% colspan="1" %)(% colspan="1" %)
373 (((
374 kleiner gleich
375 )))
376 |(% colspan="1" %)(% colspan="1" %)
377 (((
378 *
379 )))|(% colspan="1" %)(% colspan="1" %)
380 (((
381 Multiplikation
382 )))
383 |(% colspan="1" %)(% colspan="1" %)
384 (((
385 /
386 )))|(% colspan="1" %)(% colspan="1" %)
387 (((
388 Division
389 )))
390 |(% colspan="1" %)(% colspan="1" %)
391 (((
392 +
393 )))|(% colspan="1" %)(% colspan="1" %)
394 (((
395 Addition
396 )))
397 |(% colspan="1" %)(% colspan="1" %)
398 (((
399 -
400 )))|(% colspan="1" %)(% colspan="1" %)
401 (((
402 Subtraktion
403 )))
404 |(% colspan="1" %)(% colspan="1" %)
405 (((
406 **Booleans**
407 )))|(% colspan="1" %)(% colspan="1" %)
408 (((
409 &
410 )))|(% colspan="1" %)(% colspan="1" %)
411 (((
412 Logisches UND
413 )))
414 |(% colspan="1" %)(% colspan="1" %)
415 (((
416 \\
417 )))|(% colspan="1" %)(% colspan="1" %)
418 (((
419 ~|
420 )))|(% colspan="1" %)(% colspan="1" %)
421 (((
422 Logisches ODER
423 )))
424 |(% colspan="1" %)(% colspan="1" %)
425 (((
426 \\
427 )))|(% colspan="1" %)(% colspan="1" %)
428 (((
429 !
430 )))|(% colspan="1" %)(% colspan="1" %)
431 (((
432 Logisches NICHT
433 )))
434 {{/expand}}
435
436 {{expand title="Anwendungsbeispiele zum Expertensyntax"}}
437 **Verwendungsbeispiele**
438
439 Nachfolgend sind Beispiele aufgeführt, die Ihnen zeigen, wie Sie den Expertensyntax verwenden können.
440
441 {{info}}
442 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 ((% class="confluence-link" %)DFN-AAI Attribute(%%)).
443 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.
444 {{/info}}
445
446 (% class="wrapped" %)
447 |=(((
448 Beispiele für Regeln in den Tabs //«Sichtbarkeit»//, //«Zugang»// und //«Punkte»// (Struktur-Baustein)
449 )))|=(((
450 Auswirkungen
451 )))
452 |(((
453 isGuest(0) oder isGuest(0)=1 oder isGuest(0)=TRUE
454 )))|(((
455 Ausschließlich Gäste haben Zugang auf den Kursbaustein.
456 )))
457 |(((
458 inLearningGroup("Anfänger") = 0
459 )))|(((
460 Mit Ausnahme der Gruppe //«Anfänger»// ist der Kursbaustein für alle Kursteilnehmer sichtbar.
461 )))
462 |(((
463 (now >= date("22.03.2017 12:00")) & (now <= date("23.08.2017 18:00")) | inLearningGroup("Betreuer")
464 )))|(((
465 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.
466 )))
467 |(((
468 (now >= date("03.09.2017 00:00")) & (now <= date("13.10.2017 00:00")) & inRightGroup("Assessoren")| isUser("autor")
469 )))|(((
470 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.
471 )))
472 |(((
473 isInAttribute("surname","Mue")
474 )))|(((
475 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.
476 )))
477 |(% colspan="1" %)(% colspan="1" %)
478 (((
479 (getUserProperty("orgUnit") = "Marketing")
480 )))|(% colspan="1" %)(% colspan="1" %)
481 (((
482 Prüft ob eine Person in der Organisationseinheit "Marketing" ist. Dies ist sinnvoll z.B. wenn die Daten automatisiert aus LDAP übernommen werden.
483 )))
484 |(% colspan="1" %)(% colspan="1" %)
485 (((
486 (getPassed("69742969114730") | getPassed("69742969115733") | getPassed("69742969118009")) * 10
487 )))|(% colspan="1" %)(% colspan="1" %)
488 (((
489 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.
490 )))
491 |(% colspan="1" %)(% colspan="1" %)
492 (((
493 (getScore("69742969114730") + getScore("69742969115733") + getScore("69742969118009")) >= 140 | getPassed("69978845384688")
494 )))|(% colspan="1" %)(% colspan="1" %)
495 (((
496 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").
497 )))
498 |(% colspan="1" %)(% colspan="1" %)
499 (((
500 getAttempts("70323786958847") > 0
501 )))|(% colspan="1" %)(% colspan="1" %)
502 (((
503 Gibt TRUE zurück, sobald der betreffende Kursteilnehmer den Test mit spezifizierter ID ein erstes Mal abgeschlossen hat.
504 )))
505 |(% colspan="1" %)(% colspan="1" %)
506 (((
507 getAttempts("70323524635734") <= 3
508 )))|(% colspan="1" %)(% colspan="1" %)
509 (((
510 Gibt FALSE zurück, sobald der betreffende Kursteilnehmer mehr als 3 Dateien in den Abgabeordner des Kursbaustein //Aufgabe// gelegt hat.
511 )))
512 |(% colspan="1" %)(% colspan="1" %)
513 (((
514 getInitialEnrollmentDate("70323786958847") <= date("26.5.2017 18:00")
515 )))|(% colspan="1" %)(% colspan="1" %)
516 (((
517 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.
518 )))
519 |(% colspan="1" %)(% colspan="1" %)
520 (((
521 getInitialEnrollmentDate("70323786958847") + 2h > now
522 )))|(% colspan="1" %)(% colspan="1" %)
523 (((
524 Gibt TRUE während zwei Stunden ab Einschreibezeitpunkt für diejenigen Kursteilnehmer, 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.
525 )))
526 |(% colspan="1" %)(% colspan="1" %)
527 (((
528 (getInitialCourseLaunchDate(0) >= never) | (getInitialCourseLaunchDate(0) + 2h > now)
529 )))|(% colspan="1" %)(% colspan="1" %)
530 (((
531 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.
532 )))
533 |(% colspan="1" %)(% colspan="1" %)
534 (((
535 (getRecentCourseLaunchDate(0) + 10min) > now
536 )))|(% colspan="1" %)(% colspan="1" %)
537 (((
538 Gibt TRUE zurück, wenn sich der Benutzer seit mehr als 10 Minuten im Kurs bewegt.
539 )))
540 |(% colspan="1" %)(% colspan="1" %)
541 (((
542 getOnyxTestOutcome("84692289655276","SCORE") >= 10
543 )))|(% colspan="1" %)(% colspan="1" %)
544 (((
545 Gibt TRUE zurück, wenn der Benutzer mindestens 10 Punkte erreicht hat.
546 )))
547 |(% colspan="1" %)(% colspan="1" %)
548 (((
549 getOnyxTestOutcomeZK("84389429397045","PASS") ="true"
550 )))|(% colspan="1" %)(% colspan="1" %)
551 (((
552 Gibt TRUE zurück, wenn der Benutzer den Test bestanden hat.
553 )))
554 |(% colspan="1" %)(% colspan="1" %)
555 (((
556 getMark("84692289655276") > 4
557 )))|(% colspan="1" %)(% colspan="1" %)
558 (((
559 Gibt TRUE zurück, wenn die Note des Nutzers für den angegebenen Baustein besser als 4 ist.
560 )))
561 |(% colspan="1" %)(% colspan="1" %)
562 (((
563 getProgress("69742969114730")>=100
564 )))|(% colspan="1" %)(% colspan="1" %)
565 (((
566 Gibt TRUE zurück, wenn der Nutzer den angegebenen Kursbaustein erledigt hat (Kursfortschritt).
567 )))
568
569 {{note title="Achtung!"}}
570 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.
571 {{/note}}
572 {{/expand}}
573 {{/layout-cell}}
574 {{/layout-section}}
575 {{/layout}}
576 {{/sv-translation}}
577
578 {{sv-translation language="en"}}
579 {{expand title="Display expert syntax"}}
580 === Expert syntax ===
581
582 |=(((
583 Type
584 )))|=(((
585 Syntax
586 )))|=(((
587 Description
588 )))
589 |(((
590 (% class="TableParagraph" %)
591 **Constants**
592 )))|(((
593 (% class="TableParagraph" %)
594 //TRUE //or //1//
595 )))|(((
596 (% class="TableParagraph" %)
597 True
598 )))
599 |(((
600
601 )))|(((
602 (% class="TableParagraph" %)
603 //FALSE //or //0//
604 )))|(((
605 (% class="TableParagraph" %)
606 False
607 )))
608 |(((
609 (% class="TableParagraph" %)
610 **Variable**
611 )))|(((
612 (% class="TableParagraph" %)
613 //now//
614 )))|(((
615 (% class="TableParagraph" %)
616 Current server system time
617 )))
618 |(((
619 (% class="TableParagraph" %)
620 **Functions**
621 )))|(((
622 (% class="TableParagraph" %)
623 //date("[date]")//
624 )))|(((
625 (% class="TableParagraph" %)
626 Query date
627 )))
628 |(% colspan="1" %)(% colspan="1" %)
629 (((
630
631 )))|(% colspan="1" %)(% colspan="1" %)
632 (((
633 (% class="TableParagraph" %)
634 //inLearningGroup("//[string]//")//
635 )))|(% colspan="1" %)(% colspan="1" %)
636 (((
637 (% class="TableParagraph" %)
638 Returns TRUE for all members of the learning group with the title [string] of the current course.
639 )))
640 |(% colspan="1" %)(% colspan="1" %)
641 (((
642
643 )))|(% colspan="1" %)(% colspan="1" %)
644 (((
645 (% class="TableParagraph" %)
646 //inLearningGroup("//[string1]//","//[string2]//")//
647 )))|(% colspan="1" %)(% colspan="1" %)
648 (((
649 (% class="TableParagraph" %)
650 Returns TRUE for all members of the specified learning group [string1] of the course with the specified course ID=[string2].
651 )))
652 |(% colspan="1" %)(% colspan="1" %)
653 (((
654
655 )))|(% colspan="1" %)(% colspan="1" %)
656 (((
657 (% class="TableParagraph" %)
658 //inLearningGroupWaitingList("//[string]//")//
659 )))|(% colspan="1" %)(% colspan="1" %)
660 (((
661 (% class="TableParagraph" %)
662 Returns TRUE for all users on the waiting list of the learning group [string] of the current course.
663 )))
664 |(% colspan="1" %)(% colspan="1" %)
665 (((
666
667 )))|(% colspan="1" %)(% colspan="1" %)
668 (((
669 (% class="TableParagraph" %)
670 //inLearningGroupWaitingList("//[string1]//","//[string2]//"// //)//
671 )))|(% colspan="1" %)(% colspan="1" %)
672 (((
673 (% class="TableParagraph" %)
674 Returns TRUE for all users on the waiting list of the learning group [string1] of the course with the specified course ID=[string2].
675 )))
676 |(% colspan="1" %)(% colspan="1" %)
677 (((
678
679 )))|(% colspan="1" %)(% colspan="1" %)
680 (((
681 (% class="TableParagraph" %)
682 //inRightGroup("//[string]//")//
683 )))|(% colspan="1" %)(% colspan="1" %)
684 (((
685 (% class="TableParagraph" %)
686 Returns TRUE for all members of the right group [string].
687 )))
688 |(% colspan="1" %)(% colspan="1" %)
689 (((
690
691 )))|(% colspan="1" %)(% colspan="1" %)
692 (((
693 (% class="TableParagraph" %)
694 //isLearningGroupFull("//[string]//")//
695 )))|(% colspan="1" %)(% colspan="1" %)
696 (((
697 (% class="TableParagraph" %)
698 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group in the current course.
699 )))
700 |(% colspan="1" %)(% colspan="1" %)
701 (((
702
703 )))|(% colspan="1" %)(% colspan="1" %)
704 (((
705 (% class="TableParagraph" %)
706 //isLearningGroupFull("//[string1]//","//[string2]//")//
707 )))|(% colspan="1" %)(% colspan="1" %)
708 (((
709 (% class="TableParagraph" %)
710 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group=[string1] of the course with the course ID=[string2].
711 )))
712 |(% colspan="1" %)(% colspan="1" %)
713 (((
714
715 )))|(% colspan="1" %)(% colspan="1" %)
716 (((
717 (% class="TableParagraph" %)
718 //isUser("//[string]//")//
719 )))|(% colspan="1" %)(% colspan="1" %)
720 (((
721 (% class="TableParagraph" %)
722 Returns TRUE for the user with the user name [string].
723 )))
724 |(% colspan="1" %)(% colspan="1" %)
725 (((
726
727 )))|(% colspan="1" %)(% colspan="1" %)
728 (((
729 (% class="TableParagraph" %)
730 //inLearningArea("//[string]//")//
731 )))|(% colspan="1" %)(% colspan="1" %)
732 (((
733 (% class="TableParagraph" %)
734 Returns TRUE for all members of the groups in the learning area [string] of the current course.
735 )))
736 |(% colspan="1" %)(% colspan="1" %)
737 (((
738
739 )))|(% colspan="1" %)(% colspan="1" %)
740 (((
741 (% class="TableParagraph" %)
742 //inLearningArea("//[string1]//","//[string2]//")//
743 )))|(% colspan="1" %)(% colspan="1" %)
744 (((
745 (% class="TableParagraph" %)
746 Returns TRUE for all members of the groups in the specified learning area [string1] of the course with the specified course ID=[string2].
747 )))
748 |(% colspan="1" %)(% colspan="1" %)
749 (((
750
751 )))|(% colspan="1" %)(% colspan="1" %)
752 (((
753 (% class="TableParagraph" %)
754 //getNumberOfEnrollments("//[string1]*//")//
755 )))|(% colspan="1" %)(% colspan="1" %)
756 (((
757 (% class="TableParagraph" %)
758 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
759 )))
760 |(% colspan="1" %)(% colspan="1" %)
761 (((
762
763 )))|(% colspan="1" %)(% colspan="1" %)
764 (((
765 (% class="TableParagraph" %)
766 //isGlobalAuthor(0)//
767 )))|(% colspan="1" %)(% colspan="1" %)
768 (((
769 (% class="TableParagraph" %)
770 Returns TRUE for all members of the OPAL author group.
771 )))
772 |(% colspan="1" %)(% colspan="1" %)
773 (((
774
775 )))|(% colspan="1" %)(% colspan="1" %)
776 (((
777 (% class="TableParagraph" %)
778 //isCourseAdministrator(0)//
779 )))|(% colspan="1" %)(% colspan="1" %)
780 (((
781 (% class="TableParagraph" %)
782 Returns TRUE for all owners of your course (learning resource).
783 )))
784 |(% colspan="1" %)(% colspan="1" %)
785 (((
786
787 )))|(% colspan="1" %)(% colspan="1" %)
788 (((
789 (% class="TableParagraph" %)
790 //isCourseCoach(0)//
791 )))|(% colspan="1" %)(% colspan="1" %)
792 (((
793 (% class="TableParagraph" %)
794 Returns TRUE for all users who supervise a learning group.
795 )))
796 |(% colspan="1" %)(% colspan="1" %)
797 (((
798
799 )))|(% colspan="1" %)(% colspan="1" %)
800 (((
801 (% class="TableParagraph" %)
802 //isGuest(0)//
803 )))|(% colspan="1" %)(% colspan="1" %)
804 (((
805 (% class="TableParagraph" %)
806 Returns TRUE for all users who visit OPAL as guests.
807 )))
808 |(% colspan="1" %)(% colspan="1" %)
809 (((
810
811 )))|(% colspan="1" %)(% colspan="1" %)
812 (((
813 (% class="TableParagraph" %)
814 //isExternalUser(0)//
815 )))|(% colspan="1" %)(% colspan="1" %)
816 (((
817 (% class="TableParagraph" %)
818 Returns TRUE for everyone who uses OPAL as an external user.
819 )))
820 |(% colspan="1" %)(% colspan="1" %)
821 (((
822
823 )))|(% colspan="1" %)(% colspan="1" %)
824 (((
825 (% class="TableParagraph" %)
826 //hasAttribute("//[AttrName]//","//[string]//")//
827 )))|(% colspan="1" %)(% colspan="1" %)
828 (((
829 (% class="TableParagraph" %)
830 Returns TRUE if [string] matches the value of the AAI attribute [AttrName] of the respective user.
831 )))
832 |(% colspan="1" %)(% colspan="1" %)
833 (((
834
835 )))|(% colspan="1" %)(% colspan="1" %)
836 (((
837 (% class="TableParagraph" %)
838 //isInAttribute("//[AttrName]//","//[substring]//")//
839 )))|(% colspan="1" %)(% colspan="1" %)
840 (((
841 (% class="TableParagraph" %)
842 Returns TRUE if [substring] matches a portion of the value of the AAI attribute [AttrName] of the respective user.
843 )))
844 |(% colspan="1" %)(% colspan="1" %)
845 (((
846
847 )))|(% colspan="1" %)(% colspan="1" %)
848 (((
849 (% class="TableParagraph" %)
850 //getUserProperty("//[string]//")//
851 )))|(% colspan="1" %)(% colspan="1" %)
852 (((
853 (% class="TableParagraph" %)
854 Returns the specified user property of the executing user.
855 )))
856 |(% colspan="1" %)(% colspan="1" %)
857 (((
858
859 )))|(% colspan="1" %)(% colspan="1" %)
860 (((
861 (% class="TableParagraph" %)
862 //getPassed("//[integer]//")//
863 )))|(% colspan="1" %)(% colspan="1" %)
864 (((
865 (% class="TableParagraph" %)
866 Returns the Boolean TRUE (=passed) or FALSE (=not passed) from the course element with the specified ID.
867 )))
868 |(% colspan="1" %)(% colspan="1" %)
869 (((
870
871 )))|(% colspan="1" %)(% colspan="1" %)
872 (((
873 (% class="TableParagraph" %)
874 //getScore("//[integer]//")//
875 )))|(% colspan="1" %)(% colspan="1" %)
876 (((
877 (% class="TableParagraph" %)
878 Returns the number of points from the course element with the specified ID.
879 )))
880 |(% colspan="1" %)(% colspan="1" %)
881 (((
882
883 )))|(% colspan="1" %)(% colspan="1" %)
884 (((
885 (% class="TableParagraph" %)
886 //getAttempts("//[integer]//")//
887 )))|(% colspan="1" %)(% colspan="1" %)
888 (((
889 (% class="TableParagraph" %)
890 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).
891 )))
892 |(% colspan="1" %)(% colspan="1" %)
893 (((
894
895 )))|(% colspan="1" %)(% colspan="1" %)
896 (((
897 (% class="TableParagraph" %)
898 //getInitialEnrollmentDate("//[integer]//")//
899 )))|(% colspan="1" %)(% colspan="1" %)
900 (((
901 (% class="TableParagraph" %)
902 Returns the date of the respective course participant's first-time enrolment from the course element //Enrolment// with the specified ID.
903 )))
904 |(% colspan="1" %)(% colspan="1" %)
905 (((
906
907 )))|(% colspan="1" %)(% colspan="1" %)
908 (((
909 (% class="TableParagraph" %)
910 //getRecentEnrollmentDate("//[integer]//")//
911 )))|(% colspan="1" %)(% colspan="1" %)
912 (((
913 (% class="TableParagraph" %)
914 Returns the date of the respective course participant's last enrolment from the course element //Enrolment// with the specified ID.
915 )))
916 |(((
917
918 )))|(((
919 (% class="TableParagraph" %)
920 //getInitialCourseLaunchDate(0)//
921 )))|(((
922 (% class="TableParagraph" %)
923 Returns the date of the first course visit of the respective course participant.
924 )))
925 |(((
926
927 )))|(((
928 (% class="TableParagraph" %)
929 //getRecentCourseLaunchDate(0)//
930 )))|(((
931 (% class="TableParagraph" %)
932 Returns the date of the last course visit of the respective course participant.
933 )))
934 |(% colspan="1" %)(% colspan="1" %)
935 (((
936
937 )))|(% colspan="1" %)(% colspan="1" %)
938 (((
939 (% class="TableParagraph" %)
940 //getRecentCourseLaunchDate(0)//
941 )))|(% colspan="1" %)(% colspan="1" %)
942 (((
943 (% class="TableParagraph" %)
944 Returns the date of the last course visit of the respective course participant.
945 )))
946 |(% colspan="1" %)(% colspan="1" %)
947 (((
948
949 )))|(% colspan="1" %)(% colspan="1" %)
950 (((
951 (% class="TableParagraph" %)
952 //getPassedWithCourseId("//[integer-1]//","//[integer- 2]//")//
953 )))|(% colspan="1" %)(% colspan="1" %)
954 (((
955 (% class="TableParagraph" %)
956 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].
957 )))
958 |(% colspan="1" %)(% colspan="1" %)
959 (((
960
961 )))|(% colspan="1" %)(% colspan="1" %)
962 (((
963 (% class="TableParagraph" %)
964 //getScoreWithCourseId("//[integer-1]//","//[integer-2]//")//
965 )))|(% colspan="1" %)(% colspan="1" %)
966 (((
967 (% class="TableParagraph" %)
968 Returns the number of points from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
969 )))
970 |(% colspan="1" %)(% colspan="1" %)
971 (((
972
973 )))|(% colspan="1" %)(% colspan="1" %)
974 (((
975 //getMarkWithCourseId(" //[integer-1]//","//[integer-2]//")//
976 )))|(% colspan="1" %)(% colspan="1" %)
977 (((
978 Returns the grade from the course element with the with the ID=[integer-1].
979 )))
980 |(((
981
982 )))|(((
983 (% class="TableParagraph" %)
984 //hasEvaluationCompleted("//KB-ID//")//
985 )))|(((
986 (% class="TableParagraph" %)
987 Returns TRUE for all users who have successfully completed the specified course element.
988 )))
989 |(((
990
991 )))|(((
992 (% class="TableParagraph" %)
993 //getNumberOfEnrollments("//[string1]*//")//
994 )))|(((
995 (% class="TableParagraph" %)
996 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
997 )))
998 |(((
999
1000 )))|(((
1001 (% class="TableParagraph" %)
1002 //getOnyxTestOutcome("//[string1]//","//[string2]//")//
1003 )))|(((
1004 (% class="TableParagraph" %)
1005 Returns the value of the output variable from the ONYX test course element with the specified ID (string1) and the specified output variable (string2). The return value is a number.
1006 )))
1007 |(% colspan="1" %)(% colspan="1" %)
1008 (((
1009
1010 )))|(% colspan="1" %)(% colspan="1" %)
1011 (((
1012 (% class="TableParagraph" %)
1013 //getOnyxTestOutcomeZK("//[string1]//","//[string2]//")//
1014 )))|(% colspan="1" %)(% colspan="1" %)
1015 (((
1016 (% class="TableParagraph" %)
1017 Returns the value of the output variable from the ONYX test course element with the specified ID (string1) and the specified output variable (string2). The return value is a string.
1018 )))
1019 |(% colspan="1" %)(% colspan="1" %)
1020 (((
1021
1022 )))|(% colspan="1" %)(% colspan="1" %)
1023 (((
1024 (% class="TableParagraph" %)
1025 //getProgress(//"[integer]"//)//
1026 )))|(% colspan="1" %)(% colspan="1" %)
1027 (((
1028 (% class="TableParagraph" %)
1029 Returns the progress from the course element with the specified ID as a numerical value between 0 and 100 (percent).
1030 )))
1031 |(% colspan="1" %)(% colspan="1" %)
1032 (((
1033
1034 )))|(% colspan="1" %)(% colspan="1" %)
1035 (((
1036 (% class="TableParagraph" %)
1037 //isPasswordConfirmed("//[string]")
1038 )))|(% colspan="1" %)(% colspan="1" %)
1039 (((
1040 (% class="TableParagraph" %)
1041 Returns TRUE after entering the correct password (string1).
1042
1043 (% class="TableParagraph" %)
1044 Can only be used with course elements which offer a password restriction even in simple mode.
1045 )))
1046 |(% colspan="1" %)(% colspan="1" %)
1047 (((
1048
1049 )))|(% colspan="1" %)(% colspan="1" %)
1050 (((
1051 (% class="TableParagraph" %)
1052 //comesFrom("//[string]//")//
1053 )))|(% colspan="1" %)(% colspan="1" %)
1054 (((
1055 (% class="TableParagraph" %)
1056 Returns TRUE if the user has a linked account to OLAT with the specified system ID.
1057 )))
1058 |(% colspan="1" %)(% colspan="1" %)
1059 (((
1060 (% class="TableParagraph" %)
1061 **Units**
1062 )))|(% colspan="1" %)(% colspan="1" %)
1063 (((
1064 (% class="TableParagraph" %)
1065 //min//
1066 )))|(% colspan="1" %)(% colspan="1" %)
1067 (((
1068 (% class="TableParagraph" %)
1069 Minutes
1070 )))
1071 |(% colspan="1" %)(% colspan="1" %)
1072 (((
1073
1074 )))|(% colspan="1" %)(% colspan="1" %)
1075 (((
1076 (% class="TableParagraph" %)
1077 //h//
1078 )))|(% colspan="1" %)(% colspan="1" %)
1079 (((
1080 (% class="TableParagraph" %)
1081 //h//
1082 )))
1083 |(% colspan="1" %)(% colspan="1" %)
1084 (((
1085
1086 )))|(% colspan="1" %)(% colspan="1" %)
1087 (((
1088 (% class="TableParagraph" %)
1089 //w//
1090 )))|(% colspan="1" %)(% colspan="1" %)
1091 (((
1092 (% class="TableParagraph" %)
1093 Weeks
1094 )))
1095 |(% colspan="1" %)(% colspan="1" %)
1096 (((
1097
1098 )))|(% colspan="1" %)(% colspan="1" %)
1099 (((
1100 (% class="TableParagraph" %)
1101 //m//
1102 )))|(% colspan="1" %)(% colspan="1" %)
1103 (((
1104 (% class="TableParagraph" %)
1105 Months
1106 )))
1107 |(% colspan="1" %)(% colspan="1" %)
1108 (((
1109 (% class="TableParagraph" %)
1110 **Operators**
1111 )))|(% colspan="1" %)(% colspan="1" %)
1112 (((
1113 (% class="TableParagraph" %)
1114 ~=
1115 )))|(% colspan="1" %)(% colspan="1" %)
1116 (((
1117 (% class="TableParagraph" %)
1118 equal to
1119 )))
1120 |(((
1121
1122 )))|(((
1123 (% class="TableParagraph" %)
1124 ~>
1125 )))|(((
1126 (% class="TableParagraph" %)
1127 greater than
1128 )))
1129 |(((
1130
1131 )))|(((
1132 (% class="TableParagraph" %)
1133 <
1134 )))|(((
1135 (% class="TableParagraph" %)
1136 less than
1137 )))
1138 |(((
1139
1140 )))|(((
1141 (% class="TableParagraph" %)
1142 ~>=
1143 )))|(((
1144 (% class="TableParagraph" %)
1145 greater than or equal to
1146 )))
1147 |(((
1148
1149 )))|(((
1150 (% class="TableParagraph" %)
1151 <=
1152 )))|(((
1153 (% class="TableParagraph" %)
1154 less than or equal to
1155 )))
1156 |(((
1157
1158 )))|(((
1159 (% class="TableParagraph" %)
1160 *
1161 )))|(((
1162 (% class="TableParagraph" %)
1163 Multiplication
1164 )))
1165 |(% colspan="1" %)(% colspan="1" %)
1166 (((
1167
1168 )))|(% colspan="1" %)(% colspan="1" %)
1169 (((
1170 (% class="TableParagraph" %)
1171 /
1172 )))|(% colspan="1" %)(% colspan="1" %)
1173 (((
1174 (% class="TableParagraph" %)
1175 Division
1176 )))
1177 |(% colspan="1" %)(% colspan="1" %)
1178 (((
1179
1180 )))|(% colspan="1" %)(% colspan="1" %)
1181 (((
1182 (% class="TableParagraph" %)
1183 +
1184 )))|(% colspan="1" %)(% colspan="1" %)
1185 (((
1186 (% class="TableParagraph" %)
1187 Addition
1188 )))
1189 |(% colspan="1" %)(% colspan="1" %)
1190 (((
1191
1192 )))|(% colspan="1" %)(% colspan="1" %)
1193 (((
1194 (% class="TableParagraph" %)
1195 -
1196 )))|(% colspan="1" %)(% colspan="1" %)
1197 (((
1198 (% class="TableParagraph" %)
1199 Subtraction
1200 )))
1201 |(((
1202 (% class="TableParagraph" %)
1203 **Booleans**
1204 )))|(((
1205 (% class="TableParagraph" %)
1206 &
1207 )))|(((
1208 (% class="TableParagraph" %)
1209 Logical AND
1210 )))
1211 |(((
1212
1213 )))|(((
1214 (% class="TableParagraph" %)
1215 ~|
1216 )))|(((
1217 (% class="TableParagraph" %)
1218 Logical OR
1219 )))
1220 |(((
1221
1222 )))|(((
1223 (% class="TableParagraph" %)
1224 !
1225 )))|(((
1226 (% class="TableParagraph" %)
1227 Logical NOT
1228 )))
1229 {{/expand}}
1230
1231 {{expand title="Application examples of the expert syntax"}}
1232 === Application examples ===
1233
1234 In the following section, you will find examples on how to use the expert syntax.
1235
1236 {{info}}
1237 In addition to these institution-independent examples, there are also institution-dependent rules that restrict and transmit data according to the user's institution (DFN-AAI attributes).
1238
1239 For OPAL users, the 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.
1240 {{/info}}
1241
1242 |=(((
1243 (% style="color: rgb(63,68,68);" %)Examples of rules in the tabs //«Visibility», «Access», //and// «Points» //(structure element)
1244 )))|=(((
1245 Effects
1246 )))
1247 |(((
1248 (% class="TableParagraph" %)
1249 isGuest(0) or isGuest(0)=1 or isGuest(0)=TRUE
1250 )))|(((
1251 (% class="TableParagraph" %)
1252 Only guests have access to the course element.
1253 )))
1254 |(((
1255 (% class="TableParagraph" %)
1256 inLearningGroup("Beginners") = 0
1257 )))|(((
1258 (% class="TableParagraph" %)
1259 With the exception of the group //«Beginners»,// the course element is visible to all course participants.
1260 )))
1261 |(((
1262 (% class="TableParagraph" %)
1263 (now >= date("22.03.2017 12:00")) & (now <= date("23.08.2017 18:00")) | inLearningGroup("Supervisors")
1264 )))|(((
1265 (% class="TableParagraph" %)
1266 The course element will be visible to all course participants from 22.03.2017 to 23.08.2017. For the members of the learning group //«Supervisors», //in contrast, it will be visible// //at any time//.//
1267 )))
1268 |(((
1269 (% class="TableParagraph" %)
1270 (now >= date("03.09.2017 00:00")) & (now <= date("13.10.2017 00:00")) & inRightGroup("Assessors")| isUser("Author")
1271 )))|(((
1272 (% class="TableParagraph" %)
1273 The course element will be visible to all course participants of the right group //«Assessors»// from 03.09.2017 to 13.10.2017. For the person with the user name //«Author», //in contrast, it will be visible at any time.
1274 )))
1275 |(% colspan="1" %)(% colspan="1" %)
1276 (((
1277 (% class="TableParagraph" %)
1278 isInAttribute("surname","Mue")
1279 )))|(% colspan="1" %)(% colspan="1" %)
1280 (((
1281 (% class="TableParagraph" %)
1282 Returns TRUE for all persons whose attribute //surname// contains// //the letter sequence "Mue". It returns TRUE e.g. for the value "Mueller" or "Muehlebacher".
1283 )))
1284 |(% colspan="1" %)(% colspan="1" %)
1285 (((
1286 (% class="TableParagraph" %)
1287 (getUserProperty("orgUnit") = "Marketing")
1288 )))|(% colspan="1" %)(% colspan="1" %)
1289 (((
1290 (% class="TableParagraph" %)
1291 Checks whether a person is in the organisation unit "Marketing". This is for example useful if the data are automatically transferred from LDAP.
1292 )))
1293 |(% colspan="1" %)(% colspan="1" %)
1294 (((
1295 (% class="TableParagraph" %)
1296 (getPassed("69742969114730") | getPassed("69742969115733") | getPassed("69742969118009")) * 10
1297 )))|(% colspan="1" %)(% colspan="1" %)
1298 (((
1299 (% class="TableParagraph" %)
1300 This rule is set in the tab //«Points» //-> //«Process points»// of the course element //Structure//. The course element //Structure //shows 10 points if any of the tests (course element IDs "69742969114730", "69742969115733", or "69742969118009") has been passed, otherwise it will show 0 points.
1301 )))
1302 |(% colspan="1" %)(% colspan="1" %)
1303 (((
1304 (getScore("69742969114730") + getScore("69742969115733") + getScore("69742969118009")) >= 140 | getPassed("69978845384688")
1305 )))|(% colspan="1" %)(% colspan="1" %)
1306 (((
1307 (% class="TableParagraph" %)
1308 This rule is set in the tab //«Points» //->
1309
1310 //«Passed if»// of the course element //Structure//. The course element //Structure //shows a //"passed"// if a minimum of 140 points is achieved in all tests together or if a //«passed» //is set manually// //(course element //Assessment //with the ID "69978845384688").
1311 )))
1312 |(% colspan="1" %)(% colspan="1" %)
1313 (((
1314 (% class="TableParagraph" %)
1315 getAttempts("70323786958847") > 0
1316 )))|(% colspan="1" %)(% colspan="1" %)
1317 (((
1318 (% class="TableParagraph" %)
1319 Returns TRUE as soon as the course participant has completed the test with the specified ID for the first time.
1320 )))
1321 |(((
1322 (% class="TableParagraph" %)
1323 getAttempts("70323524635734") <= 3
1324 )))|(((
1325 (% class="TableParagraph" %)
1326 Returns FALSE as soon as the course participant has saved more than 3 files in the drop box of the course element //Task//.
1327 )))
1328 |(((
1329 (% class="TableParagraph" %)
1330 getInitialEnrollmentDate("70323786958847") <= date("26.5.2017 18:00")
1331 )))|(((
1332 (% class="TableParagraph" %)
1333 Returns TRUE for those course participants who have enrolled in one of the available groups before 6 p.m. on May 26, 2017 via the course element //Enrolment// with a specified ID.
1334 )))
1335 |(% colspan="1" %)(% colspan="1" %)
1336 (((
1337 (% class="TableParagraph" %)
1338 getInitialEnrollmentDate("70323786958847") + 2h > now
1339 )))|(% colspan="1" %)(% colspan="1" %)
1340 (((
1341 (% class="TableParagraph" %)
1342 Returns TRUE within two hours from the time of enrolment for those course participants who have enrolled in one of the available groups via the course element //Enrolment// with 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.
1343 )))
1344 |(% colspan="1" %)(% colspan="1" %)
1345 (((
1346 (% class="TableParagraph" %)
1347 (getInitialCourseLaunchDate(0) >= never) | (getInitialCourseLaunchDate(0) + 2h > now)
1348 )))|(% colspan="1" %)(% colspan="1" %)
1349 (((
1350 (% class="TableParagraph" %)
1351 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.
1352 )))
1353 |(% colspan="1" %)(% colspan="1" %)
1354 (((
1355 (% class="TableParagraph" %)
1356 (getRecentCourseLaunchDate(0) + 10min) > now
1357 )))|(% colspan="1" %)(% colspan="1" %)
1358 (((
1359 (% class="TableParagraph" %)
1360 Returns TRUE if the user has been active in the course for more than 10 minutes.
1361 )))
1362 |(((
1363 (% class="TableParagraph" %)
1364 getOnyxTestOutcome("84692289655276","SCORE") >= 10
1365 )))|(((
1366 (% class="TableParagraph" %)
1367 Returns TRUE if the user has reached at least 10 points.
1368 )))
1369 |(((
1370 (% class="TableParagraph" %)
1371 getOnyxTestOutcomeZK("84389429397045","PASS") ="true"
1372 )))|(((
1373 (% class="TableParagraph" %)
1374 Returns TRUE if the user has passed the test.
1375 )))
1376 |(((
1377 (% class="TableParagraph" %)
1378 getMark("84692289655276") > 4
1379 )))|(((
1380 (% class="TableParagraph" %)
1381 Returns TRUE if the user's grade for the specified course element is better than 4.
1382 )))
1383
1384 {{note title="Attention!"}}
1385 Please note that the above-mentioned course element IDs are just examples. When you create a course, you need to reference the ID of your own course.
1386 {{/note}}
1387 {{/expand}}
1388 {{/sv-translation}}