Evaluation of the Enrollment Date
In all of the following examples, specific course elements are used. Before using these rules, note down the course element IDs of the relevant course elements for your scenario and adjust them accordingly in the expert rules.
Syntax in General | Example of an expert rule | Result of this rule |
---|---|---|
getInitialEnrollmentDate("[integer]") | getInitialEnrollmentDate("70323786958847") <= date("26.5.2020 18:00") | The access to a course element is possible depending on a specific enrollment date. Course participants who got enrolled by means of a course element enrollment (course element ID "70323786958847") before May 26, 2020, 6 pm can use the course element. |
getInitialEnrollmentDate("70323786958847") + 2h < now | Each course participant can see the course element from a relative point in time, e. g. only 2 hours after the enrollment (course element ID "70323786958847"). | |
getInitialEnrollmentDate("70323786958847") + 2h > now | Each course participant can only see the course element up to a relative point in time, e.g. only for the first 2 hours after the enrollment (course element ID "70323786958847").
| |
(getInitialEnrollmentDate("101524102434663") + 2h < now and getInitialEnrollmentDate("101524102434663") + 5h > now ) or isCourseCoach() or isCourseAdministrator() | Each course participant can only see the course element within a relative time period, e. g. starting 2 hours prior to the enrollment (course element ID "70323786958847") until 5 hours after the enrollment. Course tutors are exempt from this restriction. | |
getInitialCourseLaunchDate() | (getInitialCourseLaunchDate() >= never) or (getInitialCourseLaunchDate() + 2h > now) | Each course participant can only see the course element for a certain period of time (during the first two hours of the first course visit). |
getInitialRecentCourseLaunchDate() | (getRecentCourseLaunchDate() + 10min) > now | The course element becomes only visible if the user has been active in the course for more than 10 minutes. |
Create additional rules by using expert syntax. A tabular overview is provided on the page Expert Syntax.