You are here

function qformat_default::setQuestions in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/question/format.php \qformat_default::setQuestions()

Set the specific questions to export. Should not include questions with parents (sub questions of cloze question type). Only used for question export.

Parameters

array of question objects:

File

includes/moodle/question/format.php, line 61

Class

qformat_default
Base class for question import and export formats.

Code

function setQuestions($questions) {
  if ($this->category !== null) {
    debugging('You shouldn\'t call setQuestions after setCategory');
  }
  $this->questions = $questions;
}