Wiki-Quellcode von Expert Mode

Version 157.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 (% class="wrapped" %)
583 |=(((
584 Type
585 )))|=(((
586 Syntax
587 )))|=(((
588 Description
589 )))
590 |(((
591 (% class="TableParagraph" %)
592 **Constants**
593 )))|(((
594 (% class="TableParagraph" %)
595 //TRUE //or //1//
596 )))|(((
597 (% class="TableParagraph" %)
598 True
599 )))
600 |(((
601 \\
602 )))|(((
603 (% class="TableParagraph" %)
604 //FALSE //or //0//
605 )))|(((
606 (% class="TableParagraph" %)
607 False
608 )))
609 |(((
610 (% class="TableParagraph" %)
611 **Variable**
612 )))|(((
613 (% class="TableParagraph" %)
614 //now//
615 )))|(((
616 (% class="TableParagraph" %)
617 Current server system time
618 )))
619 |(((
620 (% class="TableParagraph" %)
621 **Functions**
622 )))|(((
623 (% class="TableParagraph" %)
624 //date("[date]")//
625 )))|(((
626 (% class="TableParagraph" %)
627 Query date
628 )))
629 |(% colspan="1" %)(% colspan="1" %)
630 (((
631 \\
632 )))|(% colspan="1" %)(% colspan="1" %)
633 (((
634 (% class="TableParagraph" %)
635 //inLearningGroup("//[string]//")//
636 )))|(% colspan="1" %)(% colspan="1" %)
637 (((
638 (% class="TableParagraph" %)
639 Returns TRUE for all members of the learning group with the title [string] of the current course.
640 )))
641 |(% colspan="1" %)(% colspan="1" %)
642 (((
643 \\
644 )))|(% colspan="1" %)(% colspan="1" %)
645 (((
646 (% class="TableParagraph" %)
647 //inLearningGroup("//[string1]//","//[string2]//")//
648 )))|(% colspan="1" %)(% colspan="1" %)
649 (((
650 (% class="TableParagraph" %)
651 Returns TRUE for all members of the specified learning group [string1] of the course with the specified course ID=[string2].
652 )))
653 |(% colspan="1" %)(% colspan="1" %)
654 (((
655 \\
656 )))|(% colspan="1" %)(% colspan="1" %)
657 (((
658 (% class="TableParagraph" %)
659 //inLearningGroupWaitingList("//[string]//")//
660 )))|(% colspan="1" %)(% colspan="1" %)
661 (((
662 (% class="TableParagraph" %)
663 Returns TRUE for all users on the waiting list of the learning group [string] of the current course.
664 )))
665 |(% colspan="1" %)(% colspan="1" %)
666 (((
667 \\
668 )))|(% colspan="1" %)(% colspan="1" %)
669 (((
670 (% class="TableParagraph" %)
671 //inLearningGroupWaitingList("//[string1]//","//[string2]//"// //)//
672 )))|(% colspan="1" %)(% colspan="1" %)
673 (((
674 (% class="TableParagraph" %)
675 Returns TRUE for all users on the waiting list of the learning group [string1] of the course with the specified course ID=[string2].
676 )))
677 |(% colspan="1" %)(% colspan="1" %)
678 (((
679 \\
680 )))|(% colspan="1" %)(% colspan="1" %)
681 (((
682 (% class="TableParagraph" %)
683 //inRightGroup("//[string]//")//
684 )))|(% colspan="1" %)(% colspan="1" %)
685 (((
686 (% class="TableParagraph" %)
687 Returns TRUE for all members of the right group [string].
688 )))
689 |(% colspan="1" %)(% colspan="1" %)
690 (((
691 \\
692 )))|(% colspan="1" %)(% colspan="1" %)
693 (((
694 (% class="TableParagraph" %)
695 //isLearningGroupFull("//[string]//")//
696 )))|(% colspan="1" %)(% colspan="1" %)
697 (((
698 (% class="TableParagraph" %)
699 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group in the current course.
700 )))
701 |(% colspan="1" %)(% colspan="1" %)
702 (((
703 \\
704 )))|(% colspan="1" %)(% colspan="1" %)
705 (((
706 (% class="TableParagraph" %)
707 //isLearningGroupFull("//[string1]//","//[string2]//")//
708 )))|(% colspan="1" %)(% colspan="1" %)
709 (((
710 (% class="TableParagraph" %)
711 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group=[string1] of the course with the course ID=[string2].
712 )))
713 |(% colspan="1" %)(% colspan="1" %)
714 (((
715 \\
716 )))|(% colspan="1" %)(% colspan="1" %)
717 (((
718 (% class="TableParagraph" %)
719 //isUser("//[string]//")//
720 )))|(% colspan="1" %)(% colspan="1" %)
721 (((
722 (% class="TableParagraph" %)
723 Returns TRUE for the user with the user name [string].
724 )))
725 |(% colspan="1" %)(% colspan="1" %)
726 (((
727 \\
728 )))|(% colspan="1" %)(% colspan="1" %)
729 (((
730 (% class="TableParagraph" %)
731 //inLearningArea("//[string]//")//
732 )))|(% colspan="1" %)(% colspan="1" %)
733 (((
734 (% class="TableParagraph" %)
735 Returns TRUE for all members of the groups in the learning area [string] of the current course.
736 )))
737 |(% colspan="1" %)(% colspan="1" %)
738 (((
739 \\
740 )))|(% colspan="1" %)(% colspan="1" %)
741 (((
742 (% class="TableParagraph" %)
743 //inLearningArea("//[string1]//","//[string2]//")//
744 )))|(% colspan="1" %)(% colspan="1" %)
745 (((
746 (% class="TableParagraph" %)
747 Returns TRUE for all members of the groups in the specified learning area [string1] of the course with the specified course ID=[string2].
748 )))
749 |(% colspan="1" %)(% colspan="1" %)
750 (((
751 \\
752 )))|(% colspan="1" %)(% colspan="1" %)
753 (((
754 (% class="TableParagraph" %)
755 //getNumberOfEnrollments("//[string1]*//")//
756 )))|(% colspan="1" %)(% colspan="1" %)
757 (((
758 (% class="TableParagraph" %)
759 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
760 )))
761 |(% colspan="1" %)(% colspan="1" %)
762 (((
763 \\
764 )))|(% colspan="1" %)(% colspan="1" %)
765 (((
766 (% class="TableParagraph" %)
767 //isGlobalAuthor(0)//
768 )))|(% colspan="1" %)(% colspan="1" %)
769 (((
770 (% class="TableParagraph" %)
771 Returns TRUE for all members of the OPAL author group.
772 )))
773 |(% colspan="1" %)(% colspan="1" %)
774 (((
775 \\
776 )))|(% colspan="1" %)(% colspan="1" %)
777 (((
778 (% class="TableParagraph" %)
779 //isCourseAdministrator(0)//
780 )))|(% colspan="1" %)(% colspan="1" %)
781 (((
782 (% class="TableParagraph" %)
783 Returns TRUE for all owners of your course (learning resource).
784 )))
785 |(% colspan="1" %)(% colspan="1" %)
786 (((
787 \\
788 )))|(% colspan="1" %)(% colspan="1" %)
789 (((
790 (% class="TableParagraph" %)
791 //isCourseCoach(0)//
792 )))|(% colspan="1" %)(% colspan="1" %)
793 (((
794 (% class="TableParagraph" %)
795 Returns TRUE for all users who supervise a learning group.
796 )))
797 |(% colspan="1" %)(% colspan="1" %)
798 (((
799 \\
800 )))|(% colspan="1" %)(% colspan="1" %)
801 (((
802 (% class="TableParagraph" %)
803 //isGuest(0)//
804 )))|(% colspan="1" %)(% colspan="1" %)
805 (((
806 (% class="TableParagraph" %)
807 Returns TRUE for all users who visit OPAL as guests.
808 )))
809 |(% colspan="1" %)(% colspan="1" %)
810 (((
811 \\
812 )))|(% colspan="1" %)(% colspan="1" %)
813 (((
814 (% class="TableParagraph" %)
815 //isExternalUser(0)//
816 )))|(% colspan="1" %)(% colspan="1" %)
817 (((
818 (% class="TableParagraph" %)
819 Returns TRUE for everyone who uses OPAL as an external user.
820 )))
821 |(% colspan="1" %)(% colspan="1" %)
822 (((
823 \\
824 )))|(% colspan="1" %)(% colspan="1" %)
825 (((
826 (% class="TableParagraph" %)
827 //hasAttribute("//[AttrName]//","//[string]//")//
828 )))|(% colspan="1" %)(% colspan="1" %)
829 (((
830 (% class="TableParagraph" %)
831 Returns TRUE if [string] matches the value of the AAI attribute [AttrName] of the respective user.
832 )))
833 |(% colspan="1" %)(% colspan="1" %)
834 (((
835 \\
836 )))|(% colspan="1" %)(% colspan="1" %)
837 (((
838 (% class="TableParagraph" %)
839 //isInAttribute("//[AttrName]//","//[substring]//")//
840 )))|(% colspan="1" %)(% colspan="1" %)
841 (((
842 (% class="TableParagraph" %)
843 Returns TRUE if [substring] matches a portion of the value of the AAI attribute [AttrName] of the respective user.
844 )))
845 |(% colspan="1" %)(% colspan="1" %)
846 (((
847 \\
848 )))|(% colspan="1" %)(% colspan="1" %)
849 (((
850 (% class="TableParagraph" %)
851 //getUserProperty("//[string]//")//
852 )))|(% colspan="1" %)(% colspan="1" %)
853 (((
854 (% class="TableParagraph" %)
855 Returns the specified user property of the executing user.
856 )))
857 |(% colspan="1" %)(% colspan="1" %)
858 (((
859 \\
860 )))|(% colspan="1" %)(% colspan="1" %)
861 (((
862 (% class="TableParagraph" %)
863 //getPassed("//[integer]//")//
864 )))|(% colspan="1" %)(% colspan="1" %)
865 (((
866 (% class="TableParagraph" %)
867 Returns the Boolean TRUE (=passed) or FALSE (=not passed) from the course element with the specified ID.
868 )))
869 |(% colspan="1" %)(% colspan="1" %)
870 (((
871 \\
872 )))|(% colspan="1" %)(% colspan="1" %)
873 (((
874 (% class="TableParagraph" %)
875 //getScore("//[integer]//")//
876 )))|(% colspan="1" %)(% colspan="1" %)
877 (((
878 (% class="TableParagraph" %)
879 Returns the number of points from the course element with the specified ID.
880 )))
881 |(% colspan="1" %)(% colspan="1" %)
882 (((
883 \\
884 )))|(% colspan="1" %)(% colspan="1" %)
885 (((
886 (% class="TableParagraph" %)
887 //getAttempts("//[integer]//")//
888 )))|(% colspan="1" %)(% colspan="1" %)
889 (((
890 (% class="TableParagraph" %)
891 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).
892 )))
893 |(% colspan="1" %)(% colspan="1" %)
894 (((
895 \\
896 )))|(% colspan="1" %)(% colspan="1" %)
897 (((
898 (% class="TableParagraph" %)
899 //getInitialEnrollmentDate("//[integer]//")//
900 )))|(% colspan="1" %)(% colspan="1" %)
901 (((
902 (% class="TableParagraph" %)
903 Returns the date of the respective course participant's first-time enrolment from the course element //Enrolment// with the specified ID.
904 )))
905 |(% colspan="1" %)(% colspan="1" %)
906 (((
907 \\
908 )))|(% colspan="1" %)(% colspan="1" %)
909 (((
910 (% class="TableParagraph" %)
911 //getRecentEnrollmentDate("//[integer]//")//
912 )))|(% colspan="1" %)(% colspan="1" %)
913 (((
914 (% class="TableParagraph" %)
915 Returns the date of the respective course participant's last enrolment from the course element //Enrolment// with the specified ID.
916 )))
917 |(((
918 \\
919 )))|(((
920 (% class="TableParagraph" %)
921 //getInitialCourseLaunchDate(0)//
922 )))|(((
923 (% class="TableParagraph" %)
924 Returns the date of the first course visit of the respective course participant.
925 )))
926 |(((
927 \\
928 )))|(((
929 (% class="TableParagraph" %)
930 //getRecentCourseLaunchDate(0)//
931 )))|(((
932 (% class="TableParagraph" %)
933 Returns the date of the last course visit of the respective course participant.
934 )))
935 |(% colspan="1" %)(% colspan="1" %)
936 (((
937 \\
938 )))|(% colspan="1" %)(% colspan="1" %)
939 (((
940 (% class="TableParagraph" %)
941 //getRecentCourseLaunchDate(0)//
942 )))|(% colspan="1" %)(% colspan="1" %)
943 (((
944 (% class="TableParagraph" %)
945 Returns the date of the last course visit of the respective course participant.
946 )))
947 |(% colspan="1" %)(% colspan="1" %)
948 (((
949 \\
950 )))|(% colspan="1" %)(% colspan="1" %)
951 (((
952 (% class="TableParagraph" %)
953 //getPassedWithCourseId("//[integer-1]//","//[integer- 2]//")//
954 )))|(% colspan="1" %)(% colspan="1" %)
955 (((
956 (% class="TableParagraph" %)
957 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].
958 )))
959 |(% colspan="1" %)(% colspan="1" %)
960 (((
961 \\
962 )))|(% colspan="1" %)(% colspan="1" %)
963 (((
964 (% class="TableParagraph" %)
965 //getScoreWithCourseId("//[integer-1]//","//[integer-2]//")//
966 )))|(% colspan="1" %)(% colspan="1" %)
967 (((
968 (% class="TableParagraph" %)
969 Returns the number of points from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
970 )))
971 |(% colspan="1" %)(% colspan="1" %)
972 (((
973 \\
974 )))|(% colspan="1" %)(% colspan="1" %)
975 (((
976 //getMarkWithCourseId(" //[integer-1]//","//[integer-2]//")//
977 )))|(% colspan="1" %)(% colspan="1" %)
978 (((
979 Returns the grade from the course element with the with the ID=[integer-1].
980 )))
981 |(((
982 \\
983 )))|(((
984 (% class="TableParagraph" %)
985 //hasEvaluationCompleted("//KB-ID//")//
986 )))|(((
987 (% class="TableParagraph" %)
988 Returns TRUE for all users who have successfully completed the specified course element.
989 )))
990 |(((
991 \\
992 )))|(((
993 (% class="TableParagraph" %)
994 //getNumberOfEnrollments("//[string1]*//")//
995 )))|(((
996 (% class="TableParagraph" %)
997 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
998 )))
999 |(((
1000 \\
1001 )))|(((
1002 (% class="TableParagraph" %)
1003 //getOnyxTestOutcome("//[string1]//","//[string2]//")//
1004 )))|(((
1005 (% class="TableParagraph" %)
1006 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.
1007 )))
1008 |(% colspan="1" %)(% colspan="1" %)
1009 (((
1010 \\
1011 )))|(% colspan="1" %)(% colspan="1" %)
1012 (((
1013 (% class="TableParagraph" %)
1014 //getOnyxTestOutcomeZK("//[string1]//","//[string2]//")//
1015 )))|(% colspan="1" %)(% colspan="1" %)
1016 (((
1017 (% class="TableParagraph" %)
1018 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.
1019 )))
1020 |(% colspan="1" %)(% colspan="1" %)
1021 (((
1022 \\
1023 )))|(% colspan="1" %)(% colspan="1" %)
1024 (((
1025 (% class="TableParagraph" %)
1026 //getProgress(//"[integer]"//)//
1027 )))|(% colspan="1" %)(% colspan="1" %)
1028 (((
1029 (% class="TableParagraph" %)
1030 Returns the progress from the course element with the specified ID as a numerical value between 0 and 100 (percent).
1031 )))
1032 |(% colspan="1" %)(% colspan="1" %)
1033 (((
1034 \\
1035 )))|(% colspan="1" %)(% colspan="1" %)
1036 (((
1037 (% class="TableParagraph" %)
1038 //isPasswordConfirmed("//[string]")
1039 )))|(% colspan="1" %)(% colspan="1" %)
1040 (((
1041 (% class="TableParagraph" %)
1042 Returns TRUE after entering the correct password (string1).
1043
1044 (% class="TableParagraph" %)
1045 Can only be used with course elements which offer a password restriction even in simple mode.
1046 )))
1047 |(% colspan="1" %)(% colspan="1" %)
1048 (((
1049 \\
1050 )))|(% colspan="1" %)(% colspan="1" %)
1051 (((
1052 (% class="TableParagraph" %)
1053 //comesFrom("//[string]//")//
1054 )))|(% colspan="1" %)(% colspan="1" %)
1055 (((
1056 (% class="TableParagraph" %)
1057 Returns TRUE if the user has a linked account to OLAT with the specified system ID.
1058 )))
1059 |(% colspan="1" %)(% colspan="1" %)
1060 (((
1061 (% class="TableParagraph" %)
1062 **Units**
1063 )))|(% colspan="1" %)(% colspan="1" %)
1064 (((
1065 (% class="TableParagraph" %)
1066 //min//
1067 )))|(% colspan="1" %)(% colspan="1" %)
1068 (((
1069 (% class="TableParagraph" %)
1070 Minutes
1071 )))
1072 |(% colspan="1" %)(% colspan="1" %)
1073 (((
1074 \\
1075 )))|(% colspan="1" %)(% colspan="1" %)
1076 (((
1077 (% class="TableParagraph" %)
1078 //h//
1079 )))|(% colspan="1" %)(% colspan="1" %)
1080 (((
1081 (% class="TableParagraph" %)
1082 //h//
1083 )))
1084 |(% colspan="1" %)(% colspan="1" %)
1085 (((
1086 \\
1087 )))|(% colspan="1" %)(% colspan="1" %)
1088 (((
1089 (% class="TableParagraph" %)
1090 //w//
1091 )))|(% colspan="1" %)(% colspan="1" %)
1092 (((
1093 (% class="TableParagraph" %)
1094 Weeks
1095 )))
1096 |(% colspan="1" %)(% colspan="1" %)
1097 (((
1098 \\
1099 )))|(% colspan="1" %)(% colspan="1" %)
1100 (((
1101 (% class="TableParagraph" %)
1102 //m//
1103 )))|(% colspan="1" %)(% colspan="1" %)
1104 (((
1105 (% class="TableParagraph" %)
1106 Months
1107 )))
1108 |(% colspan="1" %)(% colspan="1" %)
1109 (((
1110 (% class="TableParagraph" %)
1111 **Operators**
1112 )))|(% colspan="1" %)(% colspan="1" %)
1113 (((
1114 (% class="TableParagraph" %)
1115 ~=
1116 )))|(% colspan="1" %)(% colspan="1" %)
1117 (((
1118 (% class="TableParagraph" %)
1119 equal to
1120 )))
1121 |(((
1122 \\
1123 )))|(((
1124 (% class="TableParagraph" %)
1125 ~>
1126 )))|(((
1127 (% class="TableParagraph" %)
1128 greater than
1129 )))
1130 |(((
1131 \\
1132 )))|(((
1133 (% class="TableParagraph" %)
1134 <
1135 )))|(((
1136 (% class="TableParagraph" %)
1137 less than
1138 )))
1139 |(((
1140 \\
1141 )))|(((
1142 (% class="TableParagraph" %)
1143 ~>=
1144 )))|(((
1145 (% class="TableParagraph" %)
1146 greater than or equal to
1147 )))
1148 |(((
1149 \\
1150 )))|(((
1151 (% class="TableParagraph" %)
1152 <=
1153 )))|(((
1154 (% class="TableParagraph" %)
1155 less than or equal to
1156 )))
1157 |(((
1158 \\
1159 )))|(((
1160 (% class="TableParagraph" %)
1161 *
1162 )))|(((
1163 (% class="TableParagraph" %)
1164 Multiplication
1165 )))
1166 |(% colspan="1" %)(% colspan="1" %)
1167 (((
1168 \\
1169 )))|(% colspan="1" %)(% colspan="1" %)
1170 (((
1171 (% class="TableParagraph" %)
1172 /
1173 )))|(% colspan="1" %)(% colspan="1" %)
1174 (((
1175 (% class="TableParagraph" %)
1176 Division
1177 )))
1178 |(% colspan="1" %)(% colspan="1" %)
1179 (((
1180 \\
1181 )))|(% colspan="1" %)(% colspan="1" %)
1182 (((
1183 (% class="TableParagraph" %)
1184 +
1185 )))|(% colspan="1" %)(% colspan="1" %)
1186 (((
1187 (% class="TableParagraph" %)
1188 Addition
1189 )))
1190 |(% colspan="1" %)(% colspan="1" %)
1191 (((
1192 \\
1193 )))|(% colspan="1" %)(% colspan="1" %)
1194 (((
1195 (% class="TableParagraph" %)
1196 -
1197 )))|(% colspan="1" %)(% colspan="1" %)
1198 (((
1199 (% class="TableParagraph" %)
1200 Subtraction
1201 )))
1202 |(((
1203 (% class="TableParagraph" %)
1204 **Booleans**
1205 )))|(((
1206 (% class="TableParagraph" %)
1207 &
1208 )))|(((
1209 (% class="TableParagraph" %)
1210 Logical AND
1211 )))
1212 |(((
1213 \\
1214 )))|(((
1215 (% class="TableParagraph" %)
1216 ~|
1217 )))|(((
1218 (% class="TableParagraph" %)
1219 Logical OR
1220 )))
1221 |(((
1222 \\
1223 )))|(((
1224 (% class="TableParagraph" %)
1225 !
1226 )))|(((
1227 (% class="TableParagraph" %)
1228 Logical NOT
1229 )))
1230 {{/expand}}
1231
1232 {{expand title="Application examples of the expert syntax"}}
1233 === Application examples ===
1234
1235 In the following section, you will find examples on how to use the expert syntax.
1236
1237 {{info}}
1238 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).
1239
1240 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.
1241 {{/info}}
1242
1243 (% class="wrapped" %)
1244 |=(((
1245 (% style="color: rgb(63,68,68);" %)Examples of rules in the tabs //«Visibility», «Access», //and// «Points» //(structure element)
1246 )))|=(((
1247 Effects
1248 )))
1249 |(((
1250 (% class="TableParagraph" %)
1251 isGuest(0) or isGuest(0)=1 or isGuest(0)=TRUE
1252 )))|(((
1253 (% class="TableParagraph" %)
1254 Only guests have access to the course element.
1255 )))
1256 |(((
1257 (% class="TableParagraph" %)
1258 inLearningGroup("Beginners") = 0
1259 )))|(((
1260 (% class="TableParagraph" %)
1261 With the exception of the group //«Beginners»,// the course element is visible to all course participants.
1262 )))
1263 |(((
1264 (% class="TableParagraph" %)
1265 (now >= date("22.03.2017 12:00")) & (now <= date("23.08.2017 18:00")) | inLearningGroup("Supervisors")
1266 )))|(((
1267 (% class="TableParagraph" %)
1268 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//.//
1269 )))
1270 |(((
1271 (% class="TableParagraph" %)
1272 (now >= date("03.09.2017 00:00")) & (now <= date("13.10.2017 00:00")) & inRightGroup("Assessors")| isUser("Author")
1273 )))|(((
1274 (% class="TableParagraph" %)
1275 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.
1276 )))
1277 |(% colspan="1" %)(% colspan="1" %)
1278 (((
1279 (% class="TableParagraph" %)
1280 isInAttribute("surname","Mue")
1281 )))|(% colspan="1" %)(% colspan="1" %)
1282 (((
1283 (% class="TableParagraph" %)
1284 Returns TRUE for all persons whose attribute //surname// contains// //the letter sequence "Mue". It returns TRUE e.g. for the value "Mueller" or "Muehlebacher".
1285 )))
1286 |(% colspan="1" %)(% colspan="1" %)
1287 (((
1288 (% class="TableParagraph" %)
1289 (getUserProperty("orgUnit") = "Marketing")
1290 )))|(% colspan="1" %)(% colspan="1" %)
1291 (((
1292 (% class="TableParagraph" %)
1293 Checks whether a person is in the organisation unit "Marketing". This is for example useful if the data are automatically transferred from LDAP.
1294 )))
1295 |(% colspan="1" %)(% colspan="1" %)
1296 (((
1297 (% class="TableParagraph" %)
1298 (getPassed("69742969114730") | getPassed("69742969115733") | getPassed("69742969118009")) * 10
1299 )))|(% colspan="1" %)(% colspan="1" %)
1300 (((
1301 (% class="TableParagraph" %)
1302 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.
1303 )))
1304 |(% colspan="1" %)(% colspan="1" %)
1305 (((
1306 (getScore("69742969114730") + getScore("69742969115733") + getScore("69742969118009")) >= 140 | getPassed("69978845384688")
1307 )))|(% colspan="1" %)(% colspan="1" %)
1308 (((
1309 (% class="TableParagraph" %)
1310 This rule is set in the tab //«Points» //->
1311
1312 //«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").
1313 )))
1314 |(% colspan="1" %)(% colspan="1" %)
1315 (((
1316 (% class="TableParagraph" %)
1317 getAttempts("70323786958847") > 0
1318 )))|(% colspan="1" %)(% colspan="1" %)
1319 (((
1320 (% class="TableParagraph" %)
1321 Returns TRUE as soon as the course participant has completed the test with the specified ID for the first time.
1322 )))
1323 |(((
1324 (% class="TableParagraph" %)
1325 getAttempts("70323524635734") <= 3
1326 )))|(((
1327 (% class="TableParagraph" %)
1328 Returns FALSE as soon as the course participant has saved more than 3 files in the drop box of the course element //Task//.
1329 )))
1330 |(((
1331 (% class="TableParagraph" %)
1332 getInitialEnrollmentDate("70323786958847") <= date("26.5.2017 18:00")
1333 )))|(((
1334 (% class="TableParagraph" %)
1335 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.
1336 )))
1337 |(% colspan="1" %)(% colspan="1" %)
1338 (((
1339 (% class="TableParagraph" %)
1340 getInitialEnrollmentDate("70323786958847") + 2h > now
1341 )))|(% colspan="1" %)(% colspan="1" %)
1342 (((
1343 (% class="TableParagraph" %)
1344 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.
1345 )))
1346 |(% colspan="1" %)(% colspan="1" %)
1347 (((
1348 (% class="TableParagraph" %)
1349 (getInitialCourseLaunchDate(0) >= never) | (getInitialCourseLaunchDate(0) + 2h > now)
1350 )))|(% colspan="1" %)(% colspan="1" %)
1351 (((
1352 (% class="TableParagraph" %)
1353 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.
1354 )))
1355 |(% colspan="1" %)(% colspan="1" %)
1356 (((
1357 (% class="TableParagraph" %)
1358 (getRecentCourseLaunchDate(0) + 10min) > now
1359 )))|(% colspan="1" %)(% colspan="1" %)
1360 (((
1361 (% class="TableParagraph" %)
1362 Returns TRUE if the user has been active in the course for more than 10 minutes.
1363 )))
1364 |(((
1365 (% class="TableParagraph" %)
1366 getOnyxTestOutcome("84692289655276","SCORE") >= 10
1367 )))|(((
1368 (% class="TableParagraph" %)
1369 Returns TRUE if the user has reached at least 10 points.
1370 )))
1371 |(((
1372 (% class="TableParagraph" %)
1373 getOnyxTestOutcomeZK("84389429397045","PASS") ="true"
1374 )))|(((
1375 (% class="TableParagraph" %)
1376 Returns TRUE if the user has passed the test.
1377 )))
1378 |(((
1379 (% class="TableParagraph" %)
1380 getMark("84692289655276") > 4
1381 )))|(((
1382 (% class="TableParagraph" %)
1383 Returns TRUE if the user's grade for the specified course element is better than 4.
1384 )))
1385
1386 {{note title="Attention!"}}
1387 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.
1388 {{/note}}
1389 {{/expand}}
1390 {{/sv-translation}}