You are here

function print_question in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/questionlib.php \print_question()

Prints a question

Simply calls the question type specific print_question() method.

Parameters

object $question The question to be rendered.:

object $state The state to render the question in.:

integer $number The number for this question.:

object $cmoptions The options specified by the course module:

object $options An object specifying the rendering options.:

File

includes/moodle/lib/questionlib.php, line 1706

Code

function print_question(&$question, &$state, $number, $cmoptions, $options = null) {
  global $QTYPES;
  $QTYPES[$question->qtype]
    ->print_question($question, $state, $number, $cmoptions, $options);
}