Skip to main content

Module user_course_settings

Module user_course_settings 

Source

Structs§

UserCourseSettings

Functions§

get_all_by_course_id
get_all_by_user_and_multiple_current_courses
Gets all of the user’s course settings that have their current course id included in the provided list.
get_all_by_user_id
Returns all non-deleted user course settings for a user.
get_user_course_settings
get_user_course_settings_by_course_id
set_hidden
Sets whether the given course is hidden from the user’s personal “My courses” list. The course is matched by its language group, so any language version of the course resolves to the same settings row.
upsert_user_course_settings_for_enrollment
Creates new user course settings based on the enrollment or updates an existing one.