CourseHiddenElements

class CourseHiddenElements constructor(hiddenIDs: List<Long>? = null, hiddenRegexes: List<Pattern>? = null, hiddenLanguageSpecificRegexes: Map<String, MutableList<Pattern>>? = null)

Constructors

Link copied to clipboard
constructor(hiddenIDs: List<Long>? = null, hiddenRegexes: List<Pattern>? = null, hiddenLanguageSpecificRegexes: Map<String, MutableList<Pattern>>? = null)

Functions

Link copied to clipboard
fun shouldHideObject(objectId: Long, objectName: String, currentLanguage: String?): Boolean

Checks if the object (e.g. exercise) ID or string match at least one of hiding rules.