Wiki-Quellcode von Expert Mode

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