public function MatchingQuestion::__construct in Quiz 7.5
Same name and namespace in other branches
- 6.6 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 6.3 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 6.4 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 6.5 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 7.6 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 7 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
- 7.4 question_types/matching/matching.classes.inc \MatchingQuestion::__construct()
Constructor
Parameters
$node: matching node
Overrides QuizQuestion::__construct
File
- question_types/
matching/ matching.classes.inc, line 24 - 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();
}
}