You are here

function qformat_default::setCategory in Quiz 6.6

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

set the category

Parameters

object category the category object:

File

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

Class

qformat_default
Base class for question import and export formats.

Code

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