Wiki-Quellcode von Expert Mode

Version 175.1 von Carina Enke am 10.12.2019

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