Wiki source code of Expertenmodus

Last modified by Carina Enke on 15.01.2024

Hide last authors
Carina Enke 79.1 1 {{layout}}
2 {{layout-section ac:type="single"}}
Carina Enke 237.1 3 {{layout-cell}}
Carina Enke 250.2 4 **Application examples of expert rules**
5
6 In the following, you will find examples of how to use the expert syntax.
7 {{/layout-cell}}
8 {{/layout-section}}
9
10 {{layout-section ac:type="single"}}
11 {{layout-cell}}
Carina Enke 242.4 12
Carina Enke 237.1 13 {{/layout-cell}}
Carina Enke 79.1 14 {{/layout-section}}
15
16 {{layout-section ac:type="single"}}
17 {{layout-cell}}
Carina Enke 250.2 18 **Typical application examples**
Carina Enke 201.1 19
Carina Enke 250.2 20 {{expand title="Make individual content elements in a public course only visible to registered users ..."}}
21 Do you wish to hide certain content elements in a public course from guests? Then enter the following code into the text field next to Expert mode in the Visibility tab of the corresponding course element. This will hide the course element in a publicly accessible course from non-registered guest users.
Carina Enke 237.1 22
23 {{code}}
Carina Enke 250.2 24 isGuest(0)=false
Carina Enke 237.1 25 {{/code}}
26
27 (% class="wrapped" %)
Carina Enke 103.1 28 |=(((
Carina Enke 250.2 29 Configuration in the course editor
Carina Enke 237.1 30 )))|(((
31 (% class="content-wrapper" %)
32 (((
Carina Enke 242.4 33 [[image:attach:Kurseditor - Konfiguration nur registrierte Nutzer_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 34 )))
35 )))
Carina Enke 250.2 36 |=(((
37 Course view as a registered user
38 )))|(((
Carina Enke 237.1 39 (% class="content-wrapper" %)
40 (((
Carina Enke 242.4 41 [[image:attach:Kursrun - Ansicht registrierte Nutzer_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 42 )))
43 )))
44 |=(((
Carina Enke 250.2 45 Course view as a guest user
Carina Enke 237.1 46 )))|(((
Carina Enke 250.2 47 (% class="content-wrapper" %)
48 (((
Carina Enke 242.4 49 [[image:attach:Kurseditor - Konfiguration nicht für Gäste_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 50 )))
Carina Enke 250.2 51 )))
52 |=(((
53 Course view as a course owner
54 )))|(((
Carina Enke 237.1 55 (% class="content-wrapper" %)
56 (((
Carina Enke 242.4 57 [[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 58 )))
59 )))
60 {{/expand}}
61
Carina Enke 250.2 62 {{expand title="Make individual content elements in a public course only visible to guests ..."}}
63 Do you wish to display certain content elements in a public course only to guests and course owners? Then enter the following code into the text field next to Expert mode in the Visibility tab of the corresponding course element. This will display the course element in a publicly accessible course only to guest users and course owners.
Carina Enke 237.1 64
65 {{code}}
Carina Enke 250.2 66 isGuest(0)=true |isCourseAdministrator(0)
Carina Enke 237.1 67 {{/code}}
68
69 (% class="wrapped" %)
70 |=(((
Carina Enke 250.2 71 Configuration in the course editor
Carina Enke 237.1 72 )))|(((
73 (% class="content-wrapper" %)
74 (((
Carina Enke 250.2 75 [[image:attach:Kurseditor - Konfiguration keine Gäste_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 76 )))
77 )))
Carina Enke 250.2 78 |=(((
79 Course view as a registered user
80 )))|(((
Carina Enke 237.1 81 (% class="content-wrapper" %)
82 (((
Carina Enke 242.4 83 [[image:attach:Kursansicht - nicht für registrierte Nutzer_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 84 )))
85 )))
86 |=(((
Carina Enke 250.2 87 Course view as a guest user
Carina Enke 237.1 88 )))|(((
Carina Enke 250.2 89 (% class="content-wrapper" %)
90 (((
Carina Enke 242.4 91 [[image:attach:Kursrun - Ansicht nur Gäste_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 92 )))
Carina Enke 250.2 93 )))
94 |=(((
95 Course view as a course owner
96 )))|(((
Carina Enke 237.1 97 (% class="content-wrapper" %)
98 (((
Carina Enke 242.4 99 [[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 100 )))
101 )))
102 {{/expand}}
103 {{/layout-cell}}
104 {{/layout-section}}
105
106 {{layout-section ac:type="single"}}
107 {{layout-cell}}
Carina Enke 250.2 108 {{expand title="Activate course elements according to test result ..."}}
109 Do you wish to activate certain course elements depending on a test? For instructions on how to implement this scenario, see the help page [[Learning path control by test result>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Leitfäden.Lernwegsteuerung nach Testergebnis.WebHome]].
Carina Enke 237.1 110 {{/expand}}
111 {{/layout-cell}}
112 {{/layout-section}}
113
114 {{layout-section ac:type="single"}}
115 {{layout-cell}}
Carina Enke 250.2 116 {{expand title="Further application examples of the expert syntax ..."}}
Carina Enke 237.1 117 {{info}}
Carina Enke 250.2 118 (% class="box infomessage box infomessage" %)In addition to the general examples, which can be used institution-independently, there are also institution-specific restrictions on data that will be transmitted depending on the institution.
119
120 (% class="box infomessage box infomessage" %)For OPAL users, the help page [[Overview of OPAL Shibboleth>>doc:LMS.Benutzerhandbuch OPAL.Administration.OPAL Shibboleth Attribute.WebHome]] attributes contains all currently usable institution-specific attributes of Saxon institutions.
Carina Enke 237.1 121 {{/info}}
122
123 (% class="wrapped" %)
124 |=(((
Carina Enke 250.2 125 (% style="color:#3f4444" %)Examples of rules in the tabs //«//Visibility// », « //Access// », //and //« //Points// » //(structure element)
Carina Enke 237.1 126 )))|=(((
Carina Enke 250.2 127 Effects
Carina Enke 237.1 128 )))
129 |(((
Carina Enke 250.2 130 (% class="TableParagraph" %)
Carina Enke 237.1 131 isGuest(0)=true
132 )))|(((
Carina Enke 250.2 133 (% class="TableParagraph" %)
134 If this code is entered in the Visibility tab, the course element will only be visible to guests, but not to registered users.
Carina Enke 237.1 135
Carina Enke 250.2 136 (% class="TableParagraph" %)
137 If this code is entered in the Access tab, only guests will have access to this course element.
Carina Enke 237.1 138
Carina Enke 250.2 139 (% class="TableParagraph" %)
140 Alternatively, the code isGuest(0) or isGuest (0)=1 can be used.
Carina Enke 237.1 141 )))
142 |(% colspan="1" %)(% colspan="1" %)
143 (((
144 isGuest(0)=false
145 )))|(% colspan="1" %)(% colspan="1" %)
146 (((
Carina Enke 250.2 147 If this code is entered in the Visibility tab, the course element will be hidden from guests.
148
149 If this code is entered in the Access tab, guests will not have access to the course element's contents.
Carina Enke 237.1 150 )))
151 |(((
Carina Enke 250.2 152 (% class="TableParagraph" %)
153 inLearningGroup("Beginners") = false
Carina Enke 237.1 154 )))|(((
Carina Enke 250.2 155 (% class="TableParagraph" %)
156 With the exception of the «Beginners» group//,// the course element will be visible to all course participants.
Carina Enke 237.1 157 )))
158 |(((
Carina Enke 250.2 159 (% class="TableParagraph" %)
160 (now >= date("22.03.2017 12:00")) & (now <= date("23.08.2017 18:00")) | inLearningGroup("Supervisors")
Carina Enke 237.1 161 )))|(((
Carina Enke 250.2 162 (% class="TableParagraph" %)
163 The course element will be visible to all course participants from 22.03.2017 to 23.08.2017. For the members of the «Supervisors» learning group//, //in contrast, it will be visible// //at any time//.//
Carina Enke 237.1 164 )))
165 |(((
Carina Enke 250.2 166 (% class="TableParagraph" %)
167 (now >= date("03.09.2017 00:00")) & (now <= date("13.10.2017 00:00")) & inRightGroup("Assessors")| isUser("Author")
Carina Enke 237.1 168 )))|(((
Carina Enke 250.2 169 (% class="TableParagraph" %)
170 The course element will be visible to all course participants of the «Assessors» right group from 03.09.2017 to 13.10.2017. For the user with the user name «Author»//, //in contrast, it will be visible at any time.
Carina Enke 237.1 171 )))
Carina Enke 250.2 172 |(% colspan="1" %)(% colspan="1" %)
173 (((
174 (% class="TableParagraph" %)
Carina Enke 237.1 175 isInAttribute("surname","Mue")
Carina Enke 250.2 176 )))|(% colspan="1" %)(% colspan="1" %)
177 (((
178 (% class="TableParagraph" %)
179 Returns TRUE for all users whose «surname» attribute contains// //the letter sequence "Mue". For example, it returns TRUE for the value "Mueller" or "Muehlebacher".
Carina Enke 237.1 180 )))
181 |(% colspan="1" %)(% colspan="1" %)
182 (((
Carina Enke 250.2 183 (% class="TableParagraph" %)
Carina Enke 237.1 184 (getUserProperty("orgUnit") = "Marketing")
185 )))|(% colspan="1" %)(% colspan="1" %)
186 (((
Carina Enke 250.2 187 (% class="TableParagraph" %)
188 Checks whether a person is in the "Marketing" organisation unit. This is useful, for example, if the data is automatically transferred from LDAP.
Carina Enke 237.1 189 )))
190 |(% colspan="1" %)(% colspan="1" %)
191 (((
Carina Enke 250.2 192 (% class="TableParagraph" %)
Carina Enke 237.1 193 (getPassed("69742969114730") | getPassed("69742969115733") | getPassed("69742969118009")) * 10
194 )))|(% colspan="1" %)(% colspan="1" %)
195 (((
Carina Enke 250.2 196 (% class="TableParagraph" %)
197 This rule can be set in the «Points» tab -> «Process points» of the Structure course element. The Structure course element shows 10 points if any of the tests (course element IDs "69742969114730", "69742969115733", or "69742969118009") will be passed, otherwise it shows 0 points.
Carina Enke 237.1 198 )))
199 |(% colspan="1" %)(% colspan="1" %)
200 (((
201 (getScore("69742969114730") + getScore("69742969115733") + getScore("69742969118009")) >= 140 | getPassed("69978845384688")
202 )))|(% colspan="1" %)(% colspan="1" %)
203 (((
Carina Enke 250.2 204 (% class="TableParagraph" %)
205 This rule can be set in the «Points» tab ->
206
207 «Passed if» of the Structure course element. The Structure course element// //shows "passed" if a minimum of 140 points will be achieved across all tests or if «passed» will be manually set (Assessment course element// //with the ID "69978845384688").
Carina Enke 237.1 208 )))
209 |(% colspan="1" %)(% colspan="1" %)
210 (((
Carina Enke 250.2 211 (% class="TableParagraph" %)
Carina Enke 237.1 212 getAttempts("70323786958847") > 0
213 )))|(% colspan="1" %)(% colspan="1" %)
214 (((
Carina Enke 250.2 215 (% class="TableParagraph" %)
216 Returns TRUE as soon as the course participant has completed the test with the specified ID for the first time.
Carina Enke 237.1 217 )))
Carina Enke 250.2 218 |(((
219 (% class="TableParagraph" %)
Carina Enke 237.1 220 getAttempts("70323524635734") <= 3
Carina Enke 250.2 221 )))|(((
222 (% class="TableParagraph" %)
223 Returns FALSE as soon as the course participant has saved more than 3 files to the drop box of the Task course element.
Carina Enke 237.1 224 )))
Carina Enke 250.2 225 |(((
226 (% class="TableParagraph" %)
Carina Enke 237.1 227 getInitialEnrollmentDate("70323786958847") <= date("26.5.2017 18:00")
Carina Enke 250.2 228 )))|(((
229 (% class="TableParagraph" %)
230 Returns TRUE for those course participants who enrolled in one of the available groups via the Enrolment course element using a specified ID before 6 p.m. on May 26 2017.
Carina Enke 237.1 231 )))
232 |(% colspan="1" %)(% colspan="1" %)
233 (((
Carina Enke 250.2 234 (% class="TableParagraph" %)
Carina Enke 237.1 235 getInitialEnrollmentDate("70323786958847") + 2h > now
236 )))|(% colspan="1" %)(% colspan="1" %)
237 (((
Carina Enke 250.2 238 (% class="TableParagraph" %)
239 Returns TRUE within two hours from the time of enrolment for those course participants who enrolled in one of the available groups via the Enrolment course element using a specified ID. In this way, it can be ensured that each course participant can only e.g. process a script during a certain period of time.
Carina Enke 237.1 240 )))
241 |(% colspan="1" %)(% colspan="1" %)
242 (((
Carina Enke 250.2 243 (% class="TableParagraph" %)
Carina Enke 237.1 244 (getInitialCourseLaunchDate(0) >= never) | (getInitialCourseLaunchDate(0) + 2h > now)
245 )))|(% colspan="1" %)(% colspan="1" %)
246 (((
Carina Enke 250.2 247 (% class="TableParagraph" %)
248 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.
Carina Enke 237.1 249 )))
250 |(% colspan="1" %)(% colspan="1" %)
251 (((
Carina Enke 250.2 252 (% class="TableParagraph" %)
Carina Enke 237.1 253 (getRecentCourseLaunchDate(0) + 10min) > now
254 )))|(% colspan="1" %)(% colspan="1" %)
255 (((
Carina Enke 250.2 256 (% class="TableParagraph" %)
257 Returns TRUE if the user has been active in the course for more than 10 minutes.
Carina Enke 237.1 258 )))
Carina Enke 250.2 259 |(((
260 (% class="TableParagraph" %)
Carina Enke 237.1 261 getOnyxTestOutcome("84692289655276","SCORE") >= 10
Carina Enke 250.2 262 )))|(((
263 (% class="TableParagraph" %)
264 Returns TRUE if the user has reached at least 10 points.
Carina Enke 237.1 265 )))
Carina Enke 250.2 266 |(((
267 (% class="TableParagraph" %)
Carina Enke 237.1 268 getOnyxTestOutcomeZK("84389429397045","PASS") ="true"
Carina Enke 250.2 269 )))|(((
270 (% class="TableParagraph" %)
271 Returns TRUE if the user has passed the test.
Carina Enke 237.1 272 )))
Carina Enke 250.2 273 |(((
274 (% class="TableParagraph" %)
Carina Enke 237.1 275 getMark("84692289655276") > 4
Carina Enke 250.2 276 )))|(((
277 (% class="TableParagraph" %)
278 Returns TRUE if the user's mark for the specified course element is better than 4.
Carina Enke 237.1 279 )))
280 |(% colspan="1" %)(% colspan="1" %)
281 (((
282 getProgress("69742969114730")>=100
283 )))|(% colspan="1" %)(% colspan="1" %)
284 (((
Carina Enke 250.2 285 Returns TRUE if the user has completed the specified course element (course progress).
Carina Enke 237.1 286 )))
287
Carina Enke 250.2 288 {{note title="Attention!"}}
289 Please note that the above-mentioned course element IDs are just examples. When you create a course, you need to reference the IDs of your own courses.
Carina Enke 237.1 290 {{/note}}
291 {{/expand}}
292 {{/layout-cell}}
293 {{/layout-section}}
294
295 {{layout-section ac:type="single"}}
296 {{layout-cell}}
Carina Enke 250.2 297 **Expert syntax**
Carina Enke 237.1 298
Carina Enke 250.2 299 {{expand title="Overview of the available expert syntax ..."}}
Carina Enke 237.1 300 (% class="wrapped" %)
301 |=(((
Carina Enke 250.2 302 Type
Carina Enke 103.1 303 )))|=(((
304 Syntax
305 )))|=(((
Carina Enke 250.2 306 Description
Carina Enke 103.1 307 )))
308 |(% rowspan="2" %)(% rowspan="2" %)
309 (((
Carina Enke 250.2 310 (% class="TableParagraph" %)
311 **Constants**
Carina Enke 103.1 312 )))|(((
Carina Enke 250.2 313 (% class="TableParagraph" %)
314 //TRUE //or //1//
Carina Enke 103.1 315 )))|(((
Carina Enke 250.2 316 (% class="TableParagraph" %)
317 True
Carina Enke 103.1 318 )))
319 |(((
Carina Enke 250.2 320 (% class="TableParagraph" %)
321 //FALSE //or //0//
Carina Enke 103.1 322 )))|(((
Carina Enke 250.2 323 (% class="TableParagraph" %)
324 False
Carina Enke 103.1 325 )))
Carina Enke 250.2 326 |(((
327 (% class="TableParagraph" %)
Carina Enke 103.1 328 **Variable**
Carina Enke 250.2 329 )))|(((
330 (% class="TableParagraph" %)
Carina Enke 103.1 331 //now//
Carina Enke 250.2 332 )))|(((
333 (% class="TableParagraph" %)
334 Current server system time
Carina Enke 103.1 335 )))
Carina Enke 237.1 336 |(% rowspan="37" %)(% rowspan="37" %)
Carina Enke 103.1 337 (((
Carina Enke 250.2 338 (% class="TableParagraph" %)
339 **Functions**
340
341
342
343
344 \\
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361 \\
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376 \\\\
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396 \\
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468 \\
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500 \\
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536 \\
537 )))|(((
538 (% class="TableParagraph" %)
539 //date("[date]")//
540 )))|(((
541 (% class="TableParagraph" %)
542 Query date
Carina Enke 103.1 543 )))
544 |(% colspan="1" %)(% colspan="1" %)
545 (((
Carina Enke 250.2 546 (% class="TableParagraph" %)
Carina Enke 103.1 547 //inLearningGroup("//[string]//")//
548 )))|(% colspan="1" %)(% colspan="1" %)
549 (((
Carina Enke 250.2 550 (% class="TableParagraph" %)
551 Returns TRUE for all members of the learning group with the title [string] of the current course.
Carina Enke 103.1 552 )))
553 |(% colspan="1" %)(% colspan="1" %)
554 (((
Carina Enke 250.2 555 (% class="TableParagraph" %)
Carina Enke 103.1 556 //inLearningGroup("//[string1]//","//[string2]//")//
557 )))|(% colspan="1" %)(% colspan="1" %)
558 (((
Carina Enke 250.2 559 (% class="TableParagraph" %)
560 Returns TRUE for all members of the specified learning group [string1] of the course with the specified course ID=[string2].
Carina Enke 103.1 561 )))
562 |(% colspan="1" %)(% colspan="1" %)
563 (((
Carina Enke 250.2 564 (% class="TableParagraph" %)
Carina Enke 103.1 565 //inLearningGroupWaitingList("//[string]//")//
566 )))|(% colspan="1" %)(% colspan="1" %)
567 (((
Carina Enke 250.2 568 (% class="TableParagraph" %)
569 Returns TRUE for all users on the waiting list of the learning group [string] of the current course.
Carina Enke 103.1 570 )))
571 |(% colspan="1" %)(% colspan="1" %)
572 (((
Carina Enke 250.2 573 (% class="TableParagraph" %)
574 //inLearningGroupWaitingList("//[string1]//","//[string2]//"// //)//
Carina Enke 103.1 575 )))|(% colspan="1" %)(% colspan="1" %)
576 (((
Carina Enke 250.2 577 (% class="TableParagraph" %)
578 Returns TRUE for all users on the waiting list of the learning group [string1] of the course with the specified course ID=[string2].
Carina Enke 103.1 579 )))
580 |(% colspan="1" %)(% colspan="1" %)
581 (((
Carina Enke 250.2 582 (% class="TableParagraph" %)
Carina Enke 103.1 583 //inRightGroup("//[string]//")//
584 )))|(% colspan="1" %)(% colspan="1" %)
585 (((
Carina Enke 250.2 586 (% class="TableParagraph" %)
587 Returns TRUE for all members of the right group [string].
Carina Enke 103.1 588 )))
589 |(% colspan="1" %)(% colspan="1" %)
590 (((
Carina Enke 250.2 591 (% class="TableParagraph" %)
Carina Enke 103.1 592 //isLearningGroupFull("//[string]//")//
593 )))|(% colspan="1" %)(% colspan="1" %)
594 (((
Carina Enke 250.2 595 (% class="TableParagraph" %)
596 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group in the current course.
Carina Enke 103.1 597 )))
598 |(% colspan="1" %)(% colspan="1" %)
599 (((
Carina Enke 250.2 600 (% class="TableParagraph" %)
Carina Enke 103.1 601 //isLearningGroupFull("//[string1]//","//[string2]//")//
602 )))|(% colspan="1" %)(% colspan="1" %)
603 (((
Carina Enke 250.2 604 (% class="TableParagraph" %)
605 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group=[string1] of the course with the course ID=[string2].
Carina Enke 103.1 606 )))
607 |(% colspan="1" %)(% colspan="1" %)
608 (((
Carina Enke 250.2 609 (% class="TableParagraph" %)
Carina Enke 103.1 610 //isUser("//[string]//")//
611 )))|(% colspan="1" %)(% colspan="1" %)
612 (((
Carina Enke 250.2 613 (% class="TableParagraph" %)
614 Returns TRUE for the user with the user name [string].
Carina Enke 103.1 615 )))
616 |(% colspan="1" %)(% colspan="1" %)
617 (((
Carina Enke 250.2 618 (% class="TableParagraph" %)
Carina Enke 103.1 619 //inLearningArea("//[string]//")//
620 )))|(% colspan="1" %)(% colspan="1" %)
621 (((
Carina Enke 250.2 622 (% class="TableParagraph" %)
623 Returns TRUE for all members of the groups in the learning area [string] of the current course.
Carina Enke 103.1 624 )))
625 |(% colspan="1" %)(% colspan="1" %)
626 (((
Carina Enke 250.2 627 (% class="TableParagraph" %)
Carina Enke 103.1 628 //inLearningArea("//[string1]//","//[string2]//")//
629 )))|(% colspan="1" %)(% colspan="1" %)
630 (((
Carina Enke 250.2 631 (% class="TableParagraph" %)
632 Returns TRUE for all members of the groups in the specified learning area [string1] of the course with the specified course ID=[string2].
Carina Enke 103.1 633 )))
634 |(% colspan="1" %)(% colspan="1" %)
635 (((
Carina Enke 250.2 636 (% class="TableParagraph" %)
Carina Enke 103.1 637 //getNumberOfEnrollments("//[string1]*//")//
638 )))|(% colspan="1" %)(% colspan="1" %)
639 (((
Carina Enke 250.2 640 (% class="TableParagraph" %)
641 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
Carina Enke 103.1 642 )))
643 |(% colspan="1" %)(% colspan="1" %)
644 (((
Carina Enke 250.2 645 (% class="TableParagraph" %)
Carina Enke 237.1 646 //isGlobalAuthor()//
Carina Enke 103.1 647 )))|(% colspan="1" %)(% colspan="1" %)
648 (((
Carina Enke 250.2 649 (% class="TableParagraph" %)
650 Returns TRUE for all members of the OPAL author group.
Carina Enke 103.1 651 )))
652 |(% colspan="1" %)(% colspan="1" %)
653 (((
Carina Enke 250.2 654 (% class="TableParagraph" %)
Carina Enke 237.1 655 //isCourseAdministrator()//
Carina Enke 103.1 656 )))|(% colspan="1" %)(% colspan="1" %)
657 (((
Carina Enke 250.2 658 (% class="TableParagraph" %)
659 Returns TRUE for all owners of your course (learning resource).
Carina Enke 103.1 660 )))
661 |(% colspan="1" %)(% colspan="1" %)
662 (((
Carina Enke 250.2 663 (% class="TableParagraph" %)
Carina Enke 237.1 664 //isCourseCoach()//
Carina Enke 103.1 665 )))|(% colspan="1" %)(% colspan="1" %)
666 (((
Carina Enke 250.2 667 (% class="TableParagraph" %)
668 Returns TRUE for all users who supervise a learning group.
Carina Enke 103.1 669 )))
670 |(% colspan="1" %)(% colspan="1" %)
671 (((
Carina Enke 250.2 672 (% class="TableParagraph" %)
Carina Enke 237.1 673 //isGuest()//
Carina Enke 103.1 674 )))|(% colspan="1" %)(% colspan="1" %)
675 (((
Carina Enke 250.2 676 (% class="TableParagraph" %)
677 Returns TRUE for all users who visit OPAL as guests.
Carina Enke 103.1 678 )))
679 |(% colspan="1" %)(% colspan="1" %)
680 (((
Carina Enke 250.2 681 (% class="TableParagraph" %)
Carina Enke 237.1 682 //isExternalUser()//
Carina Enke 103.1 683 )))|(% colspan="1" %)(% colspan="1" %)
684 (((
Carina Enke 250.2 685 (% class="TableParagraph" %)
686 Returns TRUE for everyone who uses OPAL as an external user.
Carina Enke 103.1 687 )))
688 |(% colspan="1" %)(% colspan="1" %)
689 (((
Carina Enke 250.2 690 (% class="TableParagraph" %)
Carina Enke 103.1 691 //hasAttribute("//[AttrName]//","//[string]//")//
692 )))|(% colspan="1" %)(% colspan="1" %)
693 (((
Carina Enke 250.2 694 (% class="TableParagraph" %)
695 Returns TRUE if [string] matches the value of the AAI attribute [AttrName] of the respective user.
Carina Enke 103.1 696 )))
697 |(% colspan="1" %)(% colspan="1" %)
698 (((
Carina Enke 250.2 699 (% class="TableParagraph" %)
Carina Enke 103.1 700 //isInAttribute("//[AttrName]//","//[substring]//")//
701 )))|(% colspan="1" %)(% colspan="1" %)
702 (((
Carina Enke 250.2 703 (% class="TableParagraph" %)
704 Returns TRUE if [substring] matches a portion of the value of the AAI attribute [AttrName] of the respective user.
Carina Enke 103.1 705 )))
706 |(% colspan="1" %)(% colspan="1" %)
707 (((
Carina Enke 250.2 708 (% class="TableParagraph" %)
Carina Enke 103.1 709 //getUserProperty("//[string]//")//
710 )))|(% colspan="1" %)(% colspan="1" %)
711 (((
Carina Enke 250.2 712 (% class="TableParagraph" %)
713 Returns the specified user property of the executing user.
Carina Enke 103.1 714 )))
715 |(% colspan="1" %)(% colspan="1" %)
716 (((
Carina Enke 250.2 717 (% class="TableParagraph" %)
Carina Enke 103.1 718 //getPassed("//[integer]//")//
719 )))|(% colspan="1" %)(% colspan="1" %)
720 (((
Carina Enke 250.2 721 (% class="TableParagraph" %)
722 Returns the Boolean TRUE (=passed) or FALSE (=not passed) from the course element with the specified ID.
Carina Enke 103.1 723 )))
724 |(% colspan="1" %)(% colspan="1" %)
725 (((
Carina Enke 250.2 726 (% class="TableParagraph" %)
Carina Enke 103.1 727 //getScore("//[integer]//")//
728 )))|(% colspan="1" %)(% colspan="1" %)
729 (((
Carina Enke 250.2 730 (% class="TableParagraph" %)
731 Returns the number of points from the course element with the specified ID.
Carina Enke 103.1 732 )))
733 |(% colspan="1" %)(% colspan="1" %)
734 (((
Carina Enke 250.2 735 (% class="TableParagraph" %)
Carina Enke 103.1 736 //getAttempts("//[integer]//")//
737 )))|(% colspan="1" %)(% colspan="1" %)
738 (((
Carina Enke 250.2 739 (% class="TableParagraph" %)
740 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).
Carina Enke 103.1 741 )))
742 |(% colspan="1" %)(% colspan="1" %)
743 (((
Carina Enke 250.2 744 (% class="TableParagraph" %)
Carina Enke 103.1 745 //getInitialEnrollmentDate("//[integer]//")//
746 )))|(% colspan="1" %)(% colspan="1" %)
747 (((
Carina Enke 250.2 748 (% class="TableParagraph" %)
749 Returns the date of the respective course participant's first-time enrolment from the Enrolment course element with the specified ID.
Carina Enke 103.1 750 )))
751 |(% colspan="1" %)(% colspan="1" %)
752 (((
Carina Enke 250.2 753 (% class="TableParagraph" %)
Carina Enke 103.1 754 //getRecentEnrollmentDate("//[integer]//")//
755 )))|(% colspan="1" %)(% colspan="1" %)
756 (((
Carina Enke 250.2 757 (% class="TableParagraph" %)
758 Returns the date of the respective course participant's last enrolment from the Enrolment course element with the specified ID.
Carina Enke 103.1 759 )))
Carina Enke 250.2 760 |(((
761 (% class="TableParagraph" %)
Carina Enke 237.1 762 //getInitialCourseLaunchDate()//
Carina Enke 250.2 763 )))|(((
764 (% class="TableParagraph" %)
765 Returns the date of the first-time course visit of the respective course participant.
Carina Enke 103.1 766 )))
Carina Enke 250.2 767 |(((
768 (% class="TableParagraph" %)
Carina Enke 237.1 769 //getRecentCourseLaunchDate()//
Carina Enke 250.2 770 )))|(((
771 (% class="TableParagraph" %)
772 Returns the date of the last course visit of the respective course participant.
Carina Enke 103.1 773 )))
774 |(% colspan="1" %)(% colspan="1" %)
775 (((
Carina Enke 250.2 776 (% class="TableParagraph" %)
777 //getPassedWithCourseId("//[integer-1]//","//[integer- 2]//")//
Carina Enke 103.1 778 )))|(% colspan="1" %)(% colspan="1" %)
779 (((
Carina Enke 250.2 780 (% class="TableParagraph" %)
781 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].
Carina Enke 103.1 782 )))
783 |(% colspan="1" %)(% colspan="1" %)
784 (((
Carina Enke 250.2 785 (% class="TableParagraph" %)
Carina Enke 103.1 786 //getScoreWithCourseId("//[integer-1]//","//[integer-2]//")//
787 )))|(% colspan="1" %)(% colspan="1" %)
788 (((
Carina Enke 250.2 789 (% class="TableParagraph" %)
790 Returns the number of points from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
Carina Enke 103.1 791 )))
792 |(% colspan="1" %)(% colspan="1" %)
793 (((
Carina Enke 250.2 794 //getMarkWithCourseId(" //[integer-1]//","//[integer-2]//")//
Carina Enke 103.1 795 )))|(% colspan="1" %)(% colspan="1" %)
796 (((
Carina Enke 250.2 797 Returns the mark from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
Carina Enke 103.1 798 )))
Carina Enke 250.2 799 |(((
800 (% class="TableParagraph" %)
Carina Enke 103.1 801 //hasEvaluationCompleted("//KB-ID//")//
Carina Enke 250.2 802 )))|(((
803 (% class="TableParagraph" %)
804 Returns TRUE for all users who have successfully completed the specified course element.
Carina Enke 103.1 805 )))
Carina Enke 250.2 806 |(((
807 (% class="TableParagraph" %)
Carina Enke 103.1 808 //getNumberOfEnrollments("//[string1]*//")//
Carina Enke 250.2 809 )))|(((
810 (% class="TableParagraph" %)
811 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
Carina Enke 103.1 812 )))
Carina Enke 250.2 813 |(((
814 (% class="TableParagraph" %)
Carina Enke 103.1 815 //getOnyxTestOutcome("//[string1]//","//[string2]//")//
Carina Enke 250.2 816 )))|(((
817 (% class="TableParagraph" %)
818 Returns from the ONYX test course element with the specified ID (string1) and the specified output variable (string2) the value of this variable. The return value will be a number.
Carina Enke 103.1 819 )))
820 |(% colspan="1" %)(% colspan="1" %)
821 (((
Carina Enke 250.2 822 (% class="TableParagraph" %)
Carina Enke 103.1 823 //getOnyxTestOutcomeZK("//[string1]//","//[string2]//")//
824 )))|(% colspan="1" %)(% colspan="1" %)
825 (((
Carina Enke 250.2 826 (% class="TableParagraph" %)
827 Returns from the ONYX test course element with the specified ID (string1) and the specified output variable (string2) the value of this variable. The return value will be a string.
Carina Enke 103.1 828 )))
829 |(% colspan="1" %)(% colspan="1" %)
830 (((
Carina Enke 250.2 831 (% class="TableParagraph" %)
Carina Enke 103.1 832 //getProgress(//"[integer]"//)//
833 )))|(% colspan="1" %)(% colspan="1" %)
834 (((
Carina Enke 250.2 835 (% class="TableParagraph" %)
836 Returns the progress from the course element with the specified ID as a numerical value between 0 and 100 (percent).
Carina Enke 103.1 837 )))
838 |(% colspan="1" %)(% colspan="1" %)
839 (((
Carina Enke 250.2 840 (% class="TableParagraph" %)
Carina Enke 103.1 841 //isPasswordConfirmed("//[string]")
842 )))|(% colspan="1" %)(% colspan="1" %)
843 (((
Carina Enke 250.2 844 (% class="TableParagraph" %)
845 Returns TRUE after entering the correct password (string1).
Carina Enke 103.1 846
Carina Enke 250.2 847 (% class="TableParagraph" %)
848 Can only be used with course elements that allow a password restriction even in simple mode.
Carina Enke 103.1 849 )))
850 |(% colspan="1" %)(% colspan="1" %)
851 (((
Carina Enke 250.2 852 (% class="TableParagraph" %)
Carina Enke 103.1 853 //comesFrom("//[string]//")//
854 )))|(% colspan="1" %)(% colspan="1" %)
855 (((
Carina Enke 250.2 856 (% class="TableParagraph" %)
857 Returns TRUE if the user has a linked account to OLAT with the specified system ID.
Carina Enke 103.1 858 )))
859 |(% rowspan="4" %)(% rowspan="4" %)
860 (((
Carina Enke 250.2 861 (% class="TableParagraph" %)
862 **Units**
863
864
865
866
Carina Enke 103.1 867 )))|(% colspan="1" %)(% colspan="1" %)
868 (((
Carina Enke 250.2 869 (% class="TableParagraph" %)
Carina Enke 103.1 870 //min//
871 )))|(% colspan="1" %)(% colspan="1" %)
872 (((
Carina Enke 250.2 873 (% class="TableParagraph" %)
874 Minutes
Carina Enke 103.1 875 )))
876 |(% colspan="1" %)(% colspan="1" %)
877 (((
Carina Enke 250.2 878 (% class="TableParagraph" %)
Carina Enke 103.1 879 //h//
880 )))|(% colspan="1" %)(% colspan="1" %)
881 (((
Carina Enke 250.2 882 (% class="TableParagraph" %)
883 Hours
Carina Enke 103.1 884 )))
885 |(% colspan="1" %)(% colspan="1" %)
886 (((
Carina Enke 250.2 887 (% class="TableParagraph" %)
Carina Enke 103.1 888 //w//
889 )))|(% colspan="1" %)(% colspan="1" %)
890 (((
Carina Enke 250.2 891 (% class="TableParagraph" %)
892 Weeks
Carina Enke 103.1 893 )))
894 |(% colspan="1" %)(% colspan="1" %)
895 (((
Carina Enke 250.2 896 (% class="TableParagraph" %)
Carina Enke 103.1 897 //m//
898 )))|(% colspan="1" %)(% colspan="1" %)
899 (((
Carina Enke 250.2 900 (% class="TableParagraph" %)
901 Months
Carina Enke 103.1 902 )))
903 |(% rowspan="9" %)(% rowspan="9" %)
904 (((
Carina Enke 250.2 905 (% class="TableParagraph" %)
906 **Operators**
907
908
909
910
911 \\\\\\\\
Carina Enke 103.1 912 )))|(% colspan="1" %)(% colspan="1" %)
913 (((
Carina Enke 250.2 914 (% class="TableParagraph" %)
Carina Enke 103.1 915 ~=
916 )))|(% colspan="1" %)(% colspan="1" %)
917 (((
Carina Enke 250.2 918 (% class="TableParagraph" %)
919 Equal to
Carina Enke 103.1 920 )))
Carina Enke 250.2 921 |(((
922 (% class="TableParagraph" %)
Carina Enke 103.1 923 ~>
Carina Enke 250.2 924 )))|(((
925 (% class="TableParagraph" %)
926 Greater than
Carina Enke 103.1 927 )))
Carina Enke 250.2 928 |(((
929 (% class="TableParagraph" %)
Carina Enke 103.1 930 <
Carina Enke 250.2 931 )))|(((
932 (% class="TableParagraph" %)
933 Less than
Carina Enke 103.1 934 )))
Carina Enke 250.2 935 |(((
936 (% class="TableParagraph" %)
Carina Enke 103.1 937 ~>=
Carina Enke 250.2 938 )))|(((
939 (% class="TableParagraph" %)
940 Greater than or equal to
Carina Enke 103.1 941 )))
Carina Enke 250.2 942 |(((
943 (% class="TableParagraph" %)
Carina Enke 103.1 944 <=
Carina Enke 250.2 945 )))|(((
946 (% class="TableParagraph" %)
947 Less than or equal to
Carina Enke 103.1 948 )))
Carina Enke 250.2 949 |(((
950 (% class="TableParagraph" %)
Carina Enke 103.1 951 *
Carina Enke 250.2 952 )))|(((
953 (% class="TableParagraph" %)
954 Multiplication
Carina Enke 103.1 955 )))
956 |(% colspan="1" %)(% colspan="1" %)
957 (((
Carina Enke 250.2 958 (% class="TableParagraph" %)
Carina Enke 103.1 959 /
960 )))|(% colspan="1" %)(% colspan="1" %)
961 (((
Carina Enke 250.2 962 (% class="TableParagraph" %)
Carina Enke 103.1 963 Division
964 )))
965 |(% colspan="1" %)(% colspan="1" %)
966 (((
Carina Enke 250.2 967 (% class="TableParagraph" %)
Carina Enke 103.1 968 +
969 )))|(% colspan="1" %)(% colspan="1" %)
970 (((
Carina Enke 250.2 971 (% class="TableParagraph" %)
Carina Enke 103.1 972 Addition
973 )))
974 |(% colspan="1" %)(% colspan="1" %)
975 (((
Carina Enke 250.2 976 (% class="TableParagraph" %)
Carina Enke 103.1 977 -
978 )))|(% colspan="1" %)(% colspan="1" %)
979 (((
Carina Enke 250.2 980 (% class="TableParagraph" %)
981 Subtraction
Carina Enke 103.1 982 )))
Carina Enke 237.1 983 |(% rowspan="3" %)(% rowspan="3" %)
Carina Enke 103.1 984 (((
Carina Enke 250.2 985 (% class="TableParagraph" %)
Carina Enke 103.1 986 **Booleans**
Carina Enke 250.2 987
988
Carina Enke 242.4 989
Carina Enke 250.2 990 )))|(((
991 (% class="TableParagraph" %)
Carina Enke 103.1 992 &
Carina Enke 250.2 993 )))|(((
994 (% class="TableParagraph" %)
995 Logical AND
Carina Enke 103.1 996 )))
Carina Enke 250.2 997 |(((
998 (% class="TableParagraph" %)
Carina Enke 103.1 999 ~|
Carina Enke 250.2 1000 )))|(((
1001 (% class="TableParagraph" %)
1002 Logical OR
Carina Enke 103.1 1003 )))
Carina Enke 250.2 1004 |(((
1005 (% class="TableParagraph" %)
Carina Enke 103.1 1006 !
Carina Enke 250.2 1007 )))|(((
1008 (% class="TableParagraph" %)
1009 Logical NOT
Carina Enke 155.1 1010 )))
1011 {{/expand}}
Carina Enke 237.1 1012 {{/layout-cell}}
1013 {{/layout-section}}
1014 {{/layout}}