You are here

public function MatchingQuestion::__construct in Quiz 7.6

Same name and namespace in other branches
  1. 6.6 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
  2. 6.3 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
  3. 6.4 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
  4. 6.5 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
  5. 7 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
  6. 7.4 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
  7. 7.5 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()

Constructor

Parameters

$node: matching node

Overrides QuizQuestion::__construct

File

question_types/matching/matching.classes.inc, line 25
matching.classes

Class

MatchingQuestion
Extension of QuizQuestion.

Code

public function __construct(stdClass $node) {
  parent::__construct($node);
  if (empty($this->node->match)) {
    $this->node->match = array();
  }
}