get_module_data.mdl_quiz: Get Quiz Data

Description Usage Arguments

Description

Fetch item data from a quiz.

Usage

1
2
3
4
## S3 method for class 'mdl_quiz'
get_module_data(x, attempt = "first",
  question.type = NULL, distractors = TRUE, prefix = "mdl_",
  suppress.warnings = TRUE, ...)

Arguments

x

An object of class "mdl_quiz"

attempt

Defaults to "first"; "all" and "last" are also allowed, or a numeric vector specifying attempt IDs

question.type

Char vector, if NULL, all items regardless of type will be fetched

distractors

List of distractors for to get key for; if NULL (the default) all keys will be extracted

prefix

Defaults to "mdl_"

suppress.warnings

Should warnings produced by dbGetQuery be suppressed? Defaults to TRUE

...

Further arguments passed on to methods


jchrom/moodler documentation built on May 18, 2019, 10:23 p.m.